Update a few more references to files that have been move to the resources directory.

This commit is contained in:
Mark Crane
2013-07-06 07:01:14 +00:00
parent 62015490eb
commit 05335fd1cc
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -1370,7 +1370,7 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
echo "<div align='center'>\n";
$msg = '';
//make sure the includes directory is writable so the config.php file can be written.
if (!is_writable($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/includes/lib_pdo.php")) {
if (!is_writable($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/pdo.php")) {
$msg .= "<b>Write access to ".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."</b><br />";
$msg .= "and its sub-directories are required during the install.<br /><br />\n";
}
+7 -4
View File
@@ -30,11 +30,14 @@ if (file_exists("/etc/fusionpbx/config.php")) {
elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) {
include "/usr/local/etc/fusionpbx/config.php";
}
else {
elseif (file_exists("includes/config.php")) {
include "includes/config.php";
}
require_once "includes/lib_php.php";
require "includes/lib_pdo.php";
else {
include "resources/config.php";
}
require_once "resources/php.php";
require "resources/pdo.php";
require_once "resources/functions.php";
require_once "includes/lib_switch.php";
require_once "resources/switch.php";
?>