From e2ecc27d64348216cbf3fb0c3c7756857ae44699 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 21 Aug 2013 15:49:38 +0000 Subject: [PATCH] Simplify the upgrade process by automatically moving includes/config.php to the resources/config.php. As includes directory has been deprecated. --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index f77f98c340..e0a3eb3524 100644 --- a/index.php +++ b/index.php @@ -30,6 +30,9 @@ include "root.php"; //do nothing } elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) { //original directory + } elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")) { + //move config.php from the includes to resources directory. + rename($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php", $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php"); } elseif (file_exists("/etc/fusionpbx/config.php")){ //linux } elseif (file_exists("/usr/local/etc/fusionpbx/config.php")){