You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
685 B
PHTML

3 years ago
<?php
// [ 应用入口文件 ]
namespace think;
// [ PHP版本检查 ]
header("Content-type: text/html; charset=utf-8");
if (version_compare(PHP_VERSION, '5.6', '<')) {
die('PHP版本过低最少需要PHP5.6请升级PHP版本');
}
// 定义后台入口文件
define('ADMIN_FILE', 'admin.php');
// 加载基础文件
require __DIR__ . '/../thinkphp/base.php';
// 支持事先使用静态方法设置Request对象和Config对象
// 检查是否安装
if(!is_file('../data/install.lock')){
define('BIND_MODULE', 'install');
Container::get('app')->bind('install')->run()->send();
} else {
// 执行应用并响应
Container::get('app')->run()->send();
}