1
0
mirror of https://gitee.com/zhc02/timely_service.git synced 2025-06-17 02:49:58 +08:00
This commit is contained in:
白鹄 2020-03-11 23:55:41 +08:00
parent 60e5df59e9
commit fcf38c0c93

View File

@ -15,6 +15,12 @@ namespace think;
// 加载基础文件
require __DIR__ . '/../thinkphp/base.php';
if(!file_exists("install/lock")){
$url=$_SERVER['HTTP_HOST'].trim($_SERVER['SCRIPT_NAME'],'index.php').'install/index.php';
header("Location:http://$url");
exit();
}
// 支持事先使用静态方法设置Request对象和Config对象
// 执行应用并响应