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 tutorial ');
$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 ');
?>
See add Red No, that is we have to set the 8-hour time Difference program Setup method.
http://www.bkjia.com/PHPjc/632315.html www.bkjia.com true http://www.bkjia.com/PHPjc/632315.html techarticle session_start (); Date_default_timezone_set (' Asia/shanghai '); header (Cache-control:no-cache, must-revalidate); Define (' Applicaton_root ', DirName (__file__)); Define (' Sys_root ', Dirn ...