-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
22 lines (22 loc) · 1.03 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
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
if (!defined('__PUBLIC__')) {
$_public = rtrim(dirname(rtrim($_SERVER['SCRIPT_NAME'], '/')), '/');
define('__PUBLIC__', (('/' == $_public || '\\' == $_public) ? '' : $_public).'/public');
}
// 定义应用目录
define('APP_PATH', __DIR__ . '/app/');
define('DATA_PATH', __DIR__.'/runtime/Data/');
//插件目录
define('PLUGIN_PATH', __DIR__ . '/plugins/');
// 加载框架引导文件
require __DIR__ . '/think/start.php';