-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
35 lines (28 loc) · 1.9 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
include_once('app/inc/head.inc.php'); // include the core and engine
/* ****************************************************
*
* Samstyle PHP Framework
* Framework Welcome Page
* Created by: Sam Yong | Date/Time: 7:07am 3rd July 2009 GMT+8
*
**************************************************** */
$page = Page::getInstance();
$page->setTemplate('default.html');
$page->addRule('footer', 'app/blocks/footer.php');
$page->addRule('menubar', 'app/blocks/menubar.php');
$page->addRule('title', 'Samstyle PHP Framework');
$page->addRule('approot', $_SITE['approot']);
$page->addRule('fwversion', $_SITE['fwver']);
$page->addRule('robots', 'index,follow');
$page->addRule('breadcrumb', 'Home');
p(html::jsf('deck/ajax.php?genjs'));
p(html::js('function newUpdate(a){document.getElementById("updates").innerHTML = "Latest Stable: <a href=\"http://code.google.com/p/samstyle-php-framework/downloads/list\">"+a.stable+"<"+"/a><b"+"r/>Current Development: "+a.dev;}window.onload = function(){getVersions([],\'newUpdate\');};'));
p(html::tag('div','Congratulations, you are now running on<br />Samstyle PHP Framework {fwversion}','style="padding:50px 0;font-size:220%;text-align:center;"'));
if(file_exists('test/index.php')){
p(html::tag('div','It seems that you\'ve installed the Unit Tests for Samstyle PHP Framework.<br />You can <a href="test/">run the tests and see the results</a> now.','style="padding:50px 0;font-size:90%;text-align:center;"'));
}else{
p(html::tag('div','We noticed that you have not downloaded and tried the Unit Tests for Samstyle PHP Framework.<br />You can <a href="http://code.google.com/p/samstyle-php-framework/downloads/list">download</a> and extract the test units to the root folder, and see the results of all tests.','style="padding:50px 0;font-size:90%;text-align:center;"'));
}
p(html::c('Samstyle PHP Framework'));
echo $page->render()->output(); // output buffer