-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInit.php
60 lines (43 loc) · 1.52 KB
/
Init.php
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
// +----------------------------------------------------------------------
// | Copyright (C) 2008-2012 OSDU.Net www.osdu.net [email protected]
// +----------------------------------------------------------------------
// | Licensed: ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 左手边的回忆 QQ:858908467 E-mail:[email protected]
// +----------------------------------------------------------------------
//error_reporting(0);
//set_time_limit(0);
header('Content-Type:text/html; charset=utf-8');
//文件载入认证
define('WebFTP', 'www.ihotte.com');
//应用主目录
define('APP_ROOT', dirname(__FILE__).'/');
//系统核心模块目录
define('INC_ROOT', APP_ROOT.'Inc/');
//系统模板目录
define('TPL_ROOT', APP_ROOT.'Tpl/');
//系统数据目录
define('DATA_PATH', APP_ROOT.'Data/');
//加载系统函数库
require(INC_ROOT.'Functions.php');
//加载系统核心模块
require(INC_ROOT.'Auth.class.php');
require(INC_ROOT.'Cookie.class.php');
require(INC_ROOT.'File.class.php');
require(INC_ROOT.'Session.class.php');
/*按需加载模块
require(INC_ROOT.'Thumb.class.php');
require(INC_ROOT.'PclZip.class.php');
require(INC_ROOT.'Chmod.conf.php');
*/
//初始化配置参数
C(include(APP_ROOT.'Config.php'));
set_error_handler('error_handler_fun');
set_time_limit((int)C('MAX_TIME_LIMIT'));
if(function_exists('date_default_timezone_set')){
date_default_timezone_set('PRC');
}
//开启SESSION
Session::start();
?>