mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Change $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH to $_SERVER["PROJECT_ROOT"].
This commit is contained in:
@@ -31,7 +31,7 @@ require_once "resources/check_auth.php";
|
||||
//detect install state
|
||||
|
||||
$first_time_install = true;
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
$first_time_install = false;
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")) {
|
||||
//linux
|
||||
|
||||
@@ -78,7 +78,7 @@ date_default_timezone_set($timezone);
|
||||
|
||||
//detect install state
|
||||
$first_time_install = true;
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) {
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
$first_time_install = false;
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")) {
|
||||
$first_time_install = false;
|
||||
|
||||
@@ -56,7 +56,7 @@ include "root.php";
|
||||
} elseif (is_dir("/usr/local/etc/fusionpbx")){
|
||||
$this->config_php = "/usr/local/etc/fusionpbx/config.php";
|
||||
}
|
||||
elseif (is_dir($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources")) {
|
||||
elseif (is_dir($_SERVER["PROJECT_ROOT"]."/resources")) {
|
||||
$this->config_php = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/config.php";
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user