mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Replace root.php
This commit is contained in:
@@ -621,8 +621,9 @@ if (!class_exists('domains')) {
|
||||
$db_path = $config->db_path;
|
||||
$db_port = $config->db_port;
|
||||
|
||||
//get the PROJECT PATH
|
||||
include "root.php";
|
||||
//set the include path
|
||||
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
||||
|
||||
//check for default settings
|
||||
$this->settings();
|
||||
@@ -741,12 +742,6 @@ if (!class_exists('domains')) {
|
||||
$domains_processed++;
|
||||
}
|
||||
|
||||
//update config.lua
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/scripts/resources/classes/scripts.php')) {
|
||||
$obj = new scripts;
|
||||
$obj->write_config();
|
||||
}
|
||||
|
||||
//clear the session variables
|
||||
unset($_SESSION['domain']);
|
||||
unset($_SESSION['switch']);
|
||||
|
||||
Reference in New Issue
Block a user