function sync_package_freeswitch() { global $config; sync_package_v_settings(); sync_package_v_dialplan(); sync_package_v_dialplan_includes(); sync_package_v_extensions(); sync_package_v_gateways(); sync_package_v_modules(); sync_package_v_public(); sync_package_v_public_includes(); sync_package_v_vars(); sync_package_v_internal(); sync_package_v_external(); //sync_package_v_recordings(); if (pkg_is_service_running('freeswitch')) { sync_package_v_auto_attendant(); } sync_package_v_hunt_group(); }
return; } //if ($action == "add") if ($action == "update") { $sql = "update v_modules set "; $sql .= "modulelabel = '{$modulelabel}', "; $sql .= "modulename = '{$modulename}', "; $sql .= "moduledesc = '{$moduledesc}', "; $sql .= "modulecat = '{$modulecat}', "; $sql .= "moduleenabled = '{$moduleenabled}', "; $sql .= "moduledefaultenabled = '{$moduledefaultenabled}' "; $sql .= "where v_id = '{$v_id}'"; $sql .= "and module_id = '{$module_id}'"; $db->exec(check_sql($sql)); unset($sql); sync_package_v_modules(); require_once "includes/header.php"; echo "<meta http-equiv=\"refresh\" content=\"2;url=v_modules.php\">\n"; echo "<div align='center'>\n"; echo "Update Complete\n"; echo "</div>\n"; require_once "includes/footer.php"; return; } //if ($action == "update") } //if ($_POST["persistformvar"] != "true") { } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) //Pre-populate the form if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {