正在显示
2 个修改的文件
包含
38 行增加
和
0 行删除
1 | +1 |
public/CQyhkSxPYd.php
0 → 100755
1 | +<?php | ||
2 | + | ||
3 | +// +---------------------------------------------------------------------- | ||
4 | +// | ThinkPHP [ WE CAN DO IT JUST THINK ] | ||
5 | +// +---------------------------------------------------------------------- | ||
6 | +// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved. | ||
7 | +// +---------------------------------------------------------------------- | ||
8 | +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) | ||
9 | +// +---------------------------------------------------------------------- | ||
10 | +// | Author: liu21st <liu21st@gmail.com> | ||
11 | +// +---------------------------------------------------------------------- | ||
12 | +// [ 后台入口文件 ] | ||
13 | +// 使用此文件可以达到隐藏admin模块的效果 | ||
14 | +// 为了你的安全,强烈不建议将此文件名修改成admin.php | ||
15 | +// 定义应用目录 | ||
16 | +define('APP_PATH', __DIR__ . '/../application/'); | ||
17 | + | ||
18 | +// 判断是否安装 | ||
19 | +if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) { | ||
20 | + header("location:./install.php"); | ||
21 | + exit; | ||
22 | +} | ||
23 | + | ||
24 | +// 加载框架引导文件 | ||
25 | +require __DIR__ . '/../thinkphp/base.php'; | ||
26 | + | ||
27 | +// 绑定到admin模块 | ||
28 | +\think\Route::bind('admin'); | ||
29 | + | ||
30 | +// 关闭路由 | ||
31 | +\think\App::route(false); | ||
32 | + | ||
33 | +// 设置根url | ||
34 | +\think\Url::root(''); | ||
35 | + | ||
36 | +// 执行应用 | ||
37 | +\think\App::run()->send(); |
-
请 注册 或 登录 后发表评论