guanli.php 915 B

1234567891011121314151617181920212223242526
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // |
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. // [ 后台入口文件 ]
  12. use think\App;
  13. // 判断是否安装
  14. if (!is_file(__DIR__ . '/../app/admin/command/Install/install.lock')) {
  15. header("location:./install.php");
  16. exit;
  17. }
  18. require __DIR__ . '/../vendor/autoload.php';
  19. // 执行HTTP应用并响应
  20. $http = (new App())->http;
  21. $response = $http->name('admin')->run();
  22. $response->send();
  23. $http->end($response);