-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
36 lines (31 loc) · 988 Bytes
/
init.php
File metadata and controls
36 lines (31 loc) · 988 Bytes
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
36
<?php
if (!isset($_POST["PHPSESSID"])) {
session_start();
}
//hhh
@define('IN_BOOT', TRUE);
@define('ROOT', dirname(__FILE__));
@define('LOGTIME', 300);//日志产生时间间隔
error_reporting(E_ERROR | E_WARNING | E_PARSE);
date_default_timezone_set("PRC");
$GLOBALS =array();
include ROOT.'/config/config.lang.php';
include ROOT.'/config/config.php';
include ROOT.'/lib/function/common.php';
include ROOT.'/lib/function/array.php';
include ROOT.'/lib/function/date.php';
include ROOT.'/lib/function/http.php';
include ROOT.'/lib/function/parameter.php';
include ROOT.'/lib/function/string.php';
include ROOT.'/lib/smarty/Smarty.class.php';
$magic_quote = get_magic_quotes_gpc();
if(empty($magic_quote)){
$_GET = saddslashes($_GET);
$_POST = saddslashes($_POST);
}
/*自动加载类*/
spl_autoload_register('fu_autoload');
spl_autoload_register('class_autoload');
/*实例化redis。 redis是一个key-value存储系统*/
//$redis = PhpRedis::getInstance();
//var_dump($redis);