示例#1
0
function main_wl_ip_del()
{
    $users = new usersMenus();
    if ($_GET["hostname"] == null) {
        $hostname = $users->hostname;
        $_GET["hostname"] = $hostname;
    } else {
        $hostname = $_GET["hostname"];
    }
    $sql = new sqlgrey($hostname);
    $sql->Del_whitelist_ip($_GET["DelIPWL"]);
}
示例#2
0
function SqlGreyEnabled()
{
    $grey = new sqlgrey();
    if ($_GET["SqlGreyEnabled"] == 1) {
        writelogs("SqlGreyEnabled - > Change to 0", __FUNCTION__, __FILE__);
        $grey->SqlGreyEnabled = 0;
    } else {
        $grey->SqlGreyEnabled = 1;
    }
    writelogs("SqlGreyEnabled={$grey->SqlGreyEnabled}", __FUNCTION__, __FILE__);
    $grey->SaveToLdap();
}
示例#3
0
function RebuildModules()
{
    $tpl = new templates();
    $artica = new artica_general();
    $artica->ArticaFilterEnabled = 0;
    $user = new usersMenus();
    if ($user->kas_installed) {
        $artica->KasxFilterEnabled = 1;
        echo $tpl->_ENGINE_parse_body('kaspersky anti-spam {added}<br>');
    }
    if ($user->MAILFROMD_INSTALLED) {
        $artica->MailFromdEnabled = 1;
        $mailfromd = new mailfromd();
        $mailfromd->SaveToLdap();
        $mailfromd->SaveToServer();
        echo $tpl->_ENGINE_parse_body('mailfromd {added}<br>');
    }
    $artica->AmavisFilterEnabled = 0;
    if ($user->KAV_MILTER_INSTALLED) {
        $milter = new kavmilterd();
        $milter->milter_enabled = 'yes';
        $milter->SaveToLdap();
        $milter->SaveRuleToLdap();
        echo $tpl->_ENGINE_parse_body('kaspersky anti-virus {added}<br>');
    }
    $artica->Save();
    $grey = new sqlgrey();
    $grey->SqlGreyEnabled = 0;
    $grey->SaveToLdap();
    if ($user->MILTERGREYLIST_INSTALLED) {
        echo $tpl->_ENGINE_parse_body('milter-greylist {added}<br>');
        $grey = new milter_greylist();
        $grey->MilterGreyListEnabled = "TRUE";
        $grey->SaveToLdap();
    }
}