优化安装脚本检测

pull/234/head
Karson 2020-09-04 14:22:13 +08:00
parent bdb9b61f24
commit cdd53ac377
2 changed files with 2 additions and 4 deletions

View File

@ -17,8 +17,7 @@ define('APP_PATH', __DIR__ . '/../application/');
// 判断是否安装 // 判断是否安装
if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) { if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) {
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); header("location:./install.php");
header("Location: {$_SERVER['REQUEST_SCHEME']}://{$_SERVER['HTTP_HOST']}{$uri}/install.php");
exit; exit;
} }

View File

@ -15,8 +15,7 @@ define('APP_PATH', __DIR__ . '/../application/');
// 判断是否安装 // 判断是否安装
if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) { if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) {
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); header("location:./install.php");
header("Location: {$_SERVER['REQUEST_SCHEME']}://{$_SERVER['HTTP_HOST']}{$uri}/install.php");
exit; exit;
} }