forked from TimothyZhang023/GreenCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
54 lines (38 loc) · 1.01 KB
/
index.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
<?php
/**
* Created by GreenStudio GCS Dev Team.
* File: index.php
* User: Timothy Zhang
* Date: 14-1-23
* Time: 上午11:57
*/
/**
* 下面的内容自己决定
*/
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(0);
@set_time_limit(120);
//@ini_set("memory_limit",'-1');
/**
* 系统调试设置 true
* 项目正式部署后请设置为 false
*/
define('APP_DEBUG', true);
/**
* 定义网站根目录
*/
define("WEB_ROOT", dirname(__FILE__) .'/' ); //dirname(__FILE__) .'/'
define("WEB_ROOT_Real", __DIR__); //dirname(__FILE__) .'/'
/**
* 应用目录设置
*/
define ('APP_PATH', './Application/');
if (file_exists(WEB_ROOT . "db_config.php")) require(WEB_ROOT . "db_config.php");
elseif (strtolower($_GET['m']) != 'install') die('<a href="install.php">click here to install</a>');
require(WEB_ROOT . "const_config.php");
require(WEB_ROOT . "version_config.php");
/**
* 引入核心入口
* ThinkPHP亦可移动到WEB以外的目录
*/
require './Core/ThinkPHP/ThinkPHP.php';