<?php
// +----------------------------------------------------------------------
// | VitPHP
// +----------------------------------------------------------------------
// | 版权所有 2018~2024 石家庄国研科技有限公司 [ http://www.vitphp.cn ]
// +----------------------------------------------------------------------
// | VitPHP是一款免费开源软件,您可以访问http://www.vitphp.cn/ 以获得更多细节。
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
namespace think;

require __DIR__ . '/../vendor/autoload.php';

if (!is_file('./install.lock'))
{
    $s = isset($_GET['s']) ? $_GET['s'] : '';
    if($s === '/_s_s' || ($_SERVER['REQUEST_URI'] ?? '') == '/_s_s'){
        echo "1";
        exit(200);
    }
    header("location:/install.php");
    exit;
}
// 执行HTTP应用并响应
$http = (new App())->http;

$response = $http->run();

$response->send();

$http->end($response);
