function edit_antivirus_protection() { $kav4mailservers = new kav4mailservers(); if ($_GET["enabled"] == 1) { $kav4mailservers->LicenseDomains[$_GET["edit_antivirus_protection"]] = $_GET["edit_antivirus_protection"]; } else { unset($kav4mailservers->LicenseDomains[$_GET["edit_antivirus_protection"]]); } $kav4mailservers->Save(); echo kav4mailservers($_GET["edit_antivirus_protection"]); }
function LicenseDomain_Delete() { $domain = $_GET["LicenseDomain_Delete"]; $kav4mailservers = new kav4mailservers(); if ($kav4mailservers->error == true) { return "{error_no_socks}"; } while (list($num, $ligne) = each($kav4mailservers->LicenseDomains)) { if ($ligne == $domain) { unset($kav4mailservers->LicenseDomains[$num]); } } $kav4mailservers->Save(); echo protected_domains(); }
function SaveFunctions() { $key = $_GET["KEY"]; unset($_GET["KEY"]); $conf = new kav4mailservers(0, null, 1); while (list($num, $ligne) = each($_GET)) { $conf->array_conf[$key][$num] = $ligne; } $conf->Save(); $conf->SaveToServer(); $tpl = new templates(); echo $tpl->_ENGINE_parse_body('{success}'); }
function PostUpdateCmd() { $user = new usersMenus(); if ($user->AsPostfixAdministrator == false) { echo $tpl->_ENGINE_parse_body("<h3>{not allowed}</H3>"); exit; } $kav = new kav4mailservers(1); while (list($num, $ligne) = each($_GET)) { $kav->array_conf["updater.options"][$num] = $ligne; } if ($kav->Save() == true) { echo "OK"; } }