mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-07 00:19:22 +00:00
Merge branch 'master' of https://github.com/fusionpbx/fusionpbx
This commit is contained in:
@@ -369,6 +369,10 @@
|
||||
if (function_exists('save_dialplan_xml')) {
|
||||
save_dialplan_xml();
|
||||
}
|
||||
//update config.lua
|
||||
require_once "core/install/resources/classes/install_switch.php";
|
||||
$switch = new install_switch;
|
||||
$switch->create_config_lua();
|
||||
|
||||
//clear the session variables
|
||||
unset($_SESSION['domain']);
|
||||
|
||||
@@ -600,6 +600,19 @@
|
||||
}
|
||||
//echo realpath(sys_get_temp_dir());
|
||||
|
||||
if ( !function_exists('normalize_path')) {
|
||||
//don't use DIRECTORY_SEPARATOR as it will change on a per platform basis and we need consistency
|
||||
function normalize_path($path) {
|
||||
return str_replace(array('/','\\'), '/', $path);
|
||||
}
|
||||
}
|
||||
|
||||
if ( !function_exists('normalize_path_to_os')) {
|
||||
function normalize_path_to_os($path) {
|
||||
return str_replace(array('/','\\'), DIRECTORY_SEPARATOR, $path);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('username_exists')) {
|
||||
function username_exists($username) {
|
||||
global $db, $domain_uuid;
|
||||
|
||||
Reference in New Issue
Block a user