You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
841 B
62 lines
841 B
<?php |
|
session_start(); |
|
|
|
require_once 'com.php'; |
|
|
|
require_once 'myFunc/isLocal.php'; |
|
|
|
if( !isLocal() ) { |
|
|
|
error_reporting(0); |
|
|
|
} |
|
|
|
|
|
|
|
define('FINEREPORT', 100); |
|
|
|
|
|
|
|
ini_set('display_errors', 1); |
|
|
|
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); |
|
|
|
|
|
|
|
#判断用户是否在本站点或者其他站点登录的文件 |
|
|
|
require_once 'index/judgeIsLogin.php'; |
|
|
|
require_once 'myFunc/randomChars.php'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
#设置session |
|
|
|
$_SESSION['token'] = produceToken(6); |
|
|
|
|
|
#引用静态资源管理类 |
|
|
|
require_once 'Resource.class.php'; |
|
|
|
#设置配置和模板文件夹,这是指打包之后的配置和模板文件夹 |
|
|
|
$root = dirname(__FILE__) . DIRECTORY_SEPARATOR; |
|
|
|
FISResource::setConfig(array( |
|
|
|
'config_dir' => $root . '/tpl/config/', |
|
|
|
'template_dir' => $root . '/tpl/' |
|
|
|
)); |
|
|
|
|
|
|
|
#渲染页面 |
|
|
|
display("page/modifies/index.php", array()); |