浏览代码

Fix the path for config.php for both index.php and login.php.

Mark Crane 12 年之前
父节点
当前提交
acac506894
共有 2 个文件被更改,包括 6 次插入8 次删除
  1. 3 4
      index.php
  2. 3 4
      login.php

+ 3 - 4
index.php

@@ -28,14 +28,13 @@ include "root.php";
 //if config.php file does not exist then redirect to the install page
 	if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
 		//do nothing
+	} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")) {
+		//original directory
 	} elseif (file_exists("/etc/fusionpbx/config.php")){
 		//linux
 	} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
 		//bsd
-	} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){
-		//original directory
-	}
-	else {
+	} else {
 		header("Location: ".PROJECT_PATH."/resources/install.php");
 		exit;
 	}

+ 3 - 4
login.php

@@ -28,14 +28,13 @@ include "root.php";
 //if config.php file does not exist then redirect to the install page
 	if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
 		//do nothing
+	} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")) {
+		//original directory
 	} elseif (file_exists("/etc/fusionpbx/config.php")){
 		//linux
 	} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){
 		//bsd
-	} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")){
-		//original directory
-	}
-	else {
+	} else {
 		header("Location: ".PROJECT_PATH."/resources/install.php");
 		exit;
 	}