コード例 #1
0
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;
}
コード例 #2
0
ファイル: policyd-weight.php プロジェクト: brucewu16899/1.6.x
function DelRHSBL()
{
    $policy = new policydweight();
    unset($policy->rhsbl_array[$_GET["DEL_RHSBL"]]);
    $policy->SaveConf();
}
コード例 #3
0
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}");
}