Karson пре 4 година
родитељ
комит
cdd53ac377
2 измењених фајлова са 2 додато и 4 уклоњено
  1. 1 2
      public/admin.php
  2. 1 2
      public/index.php

+ 1 - 2
public/admin.php

@@ -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;
 }
 

+ 1 - 2
public/index.php

@@ -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;
 }