Home >php教程 >php手册 >php设置8小时时差程序设置方法

php设置8小时时差程序设置方法

WBOY
WBOYOriginal
2016-06-13 09:55:061534browse

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小时时差程序设置方法 了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn