function DelRHSBL() { $policy = new policydweight(); unset($policy->rhsbl_array[$_GET["DEL_RHSBL"]]); $policy->SaveConf(); }
function compile_miltergreylist() { $users = new usersMenus(); $tpl = new templates(); $users->LoadModulesEnabled(); $policy = new policydweight(); $policy->SaveConf(); if ($users->MILTERGREYLIST_INSTALLED != 1) { echo $tpl->_ENGINE_parse_body("<strong>{APP_MILTERGREYLIST}:</strong> {error_module_not_installed})"); die; } if ($users->MilterGreyListEnabled != 1) { echo $tpl->_ENGINE_parse_body("<strong>{APP_MILTERGREYLIST}:</strong> {error_module_not_enabled})"); die; } $milter = new milter_greylist(); $milter->SaveToLdap(); echo $tpl->_ENGINE_parse_body("<br><strong>{APP_MILTERGREYLIST}:</strong>{apply config} {success}"); }
function compile_miltergreylist() { $users = new usersMenus(); $tpl = new templates(); $users->LoadModulesEnabled(); $page = CurrentPageName(); $policy = new policydweight(); $policy->SaveConf(); $script = "\n\t<div id='compile_miltergreylist'></div>\n\t<script>\n\t\tChangeStatus(45);\n\t\tLoadAjaxSilent('compile_miltergreylist','{$page}?compile_postfix_save=yes');\n\t</script>\n\t"; if ($users->MILTERGREYLIST_INSTALLED != 1) { echo $tpl->_ENGINE_parse_body("<strong>{APP_MILTERGREYLIST}:</strong> {error_module_not_installed})") . $script; die; } if ($users->MilterGreyListEnabled != 1) { echo $tpl->_ENGINE_parse_body("<strong>{APP_MILTERGREYLIST}:</strong> {error_module_not_enabled})") . $script; die; } $milter = new milter_greylist(); $milter->SaveToLdap(); echo $tpl->_ENGINE_parse_body("<br><strong>{APP_MILTERGREYLIST}:</strong>{apply config} {success}") . $script; }
function policyd_weight_reconfigure() { $pol = new policydweight(); $conf = $pol->buildConf(); @file_put_contents("/etc/artica-postfix/settings/Daemons/PolicydWeightConfig", $conf); echo "Starting......: policyd-weight building first config done\n"; }