From 8e3be308e864059894b1bbb3a905b6107cc02849 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 6 Jul 2013 08:03:14 +0000 Subject: [PATCH] Fix the path for config.php for both index.php and login.php. --- index.php | 7 +++---- login.php | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index caea25f597..60c1a7ae52 100644 --- a/index.php +++ b/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; } diff --git a/login.php b/login.php index 257088b361..f12786706e 100644 --- a/login.php +++ b/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; }