mirror of https://gitee.com/karson/fastadmin.git
优化安装脚本检测
parent
bdb9b61f24
commit
cdd53ac377
|
|
@ -17,8 +17,7 @@ define('APP_PATH', __DIR__ . '/../application/');
|
|||
|
||||
// 判断是否安装
|
||||
if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) {
|
||||
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
|
||||
header("Location: {$_SERVER['REQUEST_SCHEME']}://{$_SERVER['HTTP_HOST']}{$uri}/install.php");
|
||||
header("location:./install.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@ define('APP_PATH', __DIR__ . '/../application/');
|
|||
|
||||
// 判断是否安装
|
||||
if (!is_file(APP_PATH . 'admin/command/Install/install.lock')) {
|
||||
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
|
||||
header("Location: {$_SERVER['REQUEST_SCHEME']}://{$_SERVER['HTTP_HOST']}{$uri}/install.php");
|
||||
header("location:./install.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue