chore: 重写初始提交(清空历史,整理后全量提交)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | YwxApp [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2026-2036 http://ywxapp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: ywxapp<admin@ywxapp.cn>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
use think\App;
|
||||
|
||||
use think\facade\Route;
|
||||
// [ 应用入口文件 ]
|
||||
|
||||
// 未安装(根目录无 install.lock)时,自动跳转安装向导
|
||||
if (!is_file(__DIR__ . '/../install.lock')) {
|
||||
$base = rtrim(dirname($_SERVER['SCRIPT_NAME'] ?? '/'), '/');
|
||||
header('Location: ' . $base . '/install/');
|
||||
exit;
|
||||
}
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
// 执行HTTP应用并响应
|
||||
$http = (new App())->http;
|
||||
|
||||
$response = $http->run();
|
||||
|
||||
$response->send();
|
||||
|
||||
$http->end($response);
|
||||
Reference in New Issue
Block a user