index.php 452 B

12345678910111213141516171819
  1. <?php
  2. // [ 应用入口文件 ]
  3. namespace think;
  4. // 检测程序安装
  5. if(!is_file(__DIR__ . '/mdata/install.lock')){
  6. header('Location: ./install/index.php');
  7. exit();
  8. }
  9. // 定义应用目录
  10. define('APP_PATH', __DIR__ . '/application/');
  11. // 加载基础文件
  12. require __DIR__ . '/thinkphp/base.php';
  13. // 支持事先使用静态方法设置Request对象和Config对象
  14. // 执行应用并响应
  15. Container::get('app')->bind('index')->run()->send();