session_start();
date_default_timezone_set('asia/shanghai');
header("cache-control: no-cache, must-revalidate");
define('applicaton_root', dirname(__file__));
define('sys_root', dirname(dirname(__file__)).'/framework');
define('default_control', 'public');
include(sys_root . '/runtime.php教程');
$c=$_request['c'];
$a=$_request['a'];
$e=$_request['e'];
if($c==""){
$_request['c']=$c='frame';
$_request['a']=$a='index';
}
$tpl = tpl::singleton();
$tpl->assign('frame',1);
$globals['frame'] = 1;
if($c=='frame' && $a=='index'){
$fc = $_request['fc'];
$fa = $_request['fa'];
if($fc==""){
$fc = 'user';
}
if($fa==""){
$fa = 'index';
}
$tpl->assign("fc",$fc);
$tpl->assign("fa",$fa);
}
$main = dispatch($c,$a);
//echo $main;
//startframework();
$tpl->assign("title",gettitle());
$tpl->assign('main',$main);
$tpl->display('frame.html');
?>
看到加紅了沒,那就是我們要設置8小時時差程序設置方法 了。