-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
46 lines (40 loc) · 979 Bytes
/
index.php
File metadata and controls
46 lines (40 loc) · 979 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
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Created by Green Studio.
* File: index.php
* User: TianShuo
* Date: 14-1-23
* Time: 上午11:57
*/
ob_start();
/**
* 下面的内容自己决定
*/
error_reporting(E_ERROR | E_WARNING | E_PARSE);
//error_reporting(0);
@set_time_limit(240);
//@ini_set("memory_limit",'-1');
//date_default_timezone_set (PRC);
/**
* 系统调试设置
* 项目正式部署后请设置为false
*/
define('APP_DEBUG', true);
define('BUILD_DIR_SECURE', false);
/**定义网站根目录
*
*/
define("WEB_ROOT", dirname(__FILE__) . '/');
/**
* 应用目录设置
*/
define ('APP_PATH', './Application/');
define ('GreenCMS_Version', 'v2.1.0225');
define ('GreenCMS_Build', '20140225');
if (file_exists(WEB_ROOT . "db_config.php")) require(WEB_ROOT . "db_config.php");
if (file_exists(WEB_ROOT . "const_config.php")) require(WEB_ROOT . "const_config.php");
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './Core/ThinkPHP/ThinkPHP.php';