This commit is contained in:
markjcrane
2015-12-02 20:37:26 -07:00
16 changed files with 1024 additions and 557 deletions

View File

@@ -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']);

View File

@@ -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;