添加入口文件

This commit is contained in:
zhao 2020-02-09 12:36:53 +08:00
parent 00a9cbf129
commit 64705e202c

View File

@ -12,6 +12,8 @@
// [ 应用入口文件 ]
namespace think;
use think\facade\Request;
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应
@ -23,5 +25,5 @@ $response->send();
$http->end($response);
if(file_exists('../install.lock') != 'true'){
header('Location: http://www.tp6.com/install.php');
header('Location:'.Request::domain().'/install.php');
}