正在显示
1 个修改的文件
包含
0 行增加
和
38 行删除
public/admin_ffg.php
已删除
100644 → 0
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改成其它任意的文件名,同时修改config.php中的'deny_module_list',把admin模块也添加进去 | ||
15 | -// 定义应用目录 | ||
16 | -define('APP_PATH', __DIR__ . '/../application/'); | ||
17 | - | ||
18 | -// 判断是否安装FastAdmin | ||
19 | -if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) | ||
20 | -{ | ||
21 | - header("location:./install.php"); | ||
22 | - exit; | ||
23 | -} | ||
24 | - | ||
25 | -// 加载框架引导文件 | ||
26 | -require __DIR__ . '/../thinkphp/base.php'; | ||
27 | - | ||
28 | -// 绑定到admin模块 | ||
29 | -\think\Route::bind('admin'); | ||
30 | - | ||
31 | -// 关闭路由 | ||
32 | -\think\App::route(false); | ||
33 | - | ||
34 | -// 设置根url | ||
35 | -\think\Url::root(''); | ||
36 | - | ||
37 | -// 执行应用 | ||
38 | -\think\App::run()->send(); |
-
请 注册 或 登录 后发表评论