$sql .= "xml_rpc_auth_pass = '******', "; $sql .= "admin_pin = '{$admin_pin}', "; $sql .= "smtphost = '{$smtphost}', "; $sql .= "smtpsecure = '{$smtpsecure}', "; $sql .= "smtpauth = '{$smtpauth}', "; $sql .= "smtpusername = '******', "; $sql .= "smtppassword = '******', "; $sql .= "smtpfrom = '{$smtpfrom}', "; $sql .= "smtpfromname = '{$smtpfromname}', "; $sql .= "mod_shout_decoder = '{$mod_shout_decoder}', "; $sql .= "mod_shout_volume = '{$mod_shout_volume}' "; $sql .= "where setting_id = '{$setting_id}' "; $db->exec(check_sql($sql)); unset($sql); //synchronize settings sync_package_v_settings(); require_once "includes/header.php"; echo "<meta http-equiv=\"refresh\" content=\"2;url=v_settings.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") {
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(); }