forked from daokr/ikphp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
34 lines (32 loc) · 804 Bytes
/
index.php
File metadata and controls
34 lines (32 loc) · 804 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
<?php
/*
* 爱客网单入口
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author 小麦
* @Email:[email protected]
*/
define ( 'IN_IK', true );
//载入版本号
require_once('version.php');
if (!is_file('./data/install.lock')) {
header('Location: ./install.php');
exit;
}
/* 应用名称*/
define('APP_NAME', 'app');
/* 应用目录*/
define('APP_PATH', './app/');
/* 数据目录*/
define('IK_DATA_PATH', './data/');
/* 扩展目录*/
define('EXTEND_PATH', APP_PATH . 'Extend/');
/* 配置文件目录*/
define('CONF_PATH', IK_DATA_PATH . 'config/');
/* 数据目录*/
define('RUNTIME_PATH', IK_DATA_PATH . 'runtime/');
/* HTML静态文件目录*/
define('HTML_PATH', IK_DATA_PATH . 'html/');
/* DEBUG开关*/
define('APP_DEBUG', true);
//载入核心文件
require("./core/setup.php");