Change links from includes to the resources directory.
This commit is contained in:
@@ -55,8 +55,8 @@ include "root.php";
|
||||
include "root.php";
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
||||
include $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php";
|
||||
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php")) {
|
||||
include $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/includes/config.php";
|
||||
} elseif (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
||||
include $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php";
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")){
|
||||
//linux
|
||||
include "/etc/fusionpbx/config.php";
|
||||
|
||||
@@ -27,7 +27,7 @@ include "root.php";
|
||||
|
||||
//add the database structure
|
||||
/*
|
||||
require_once "includes/classes/modules.php";
|
||||
require_once "resources/classes/modules.php";
|
||||
$mod = new switch_modules;
|
||||
$mod->dir = $_SESSION['switch']['mod']['dir'];
|
||||
echo $mod->dir."\n";
|
||||
|
||||
Reference in New Issue
Block a user