作者 Karson

优化安装脚本检测

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