9a1bf6645d44bdf3cb12f9e83af4928d.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:14:"xOGLRsWPUr.php";i:1709714141;}*/ ?>
  2. <?php
  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. if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) {
  19. header("location:./install.php");
  20. exit;
  21. }
  22. // 加载框架引导文件
  23. require __DIR__ . '/../thinkphp/base.php';
  24. // 绑定到admin模块
  25. \think\Route::bind('admin');
  26. // 关闭路由
  27. \think\App::route(false);
  28. // 设置根url
  29. \think\Url::root('');
  30. // 执行应用
  31. \think\App::run()->send();