Example #1
0
function freshclam_addmirror()
{
    $mirror = $_GET["freshclam-mirror-add"];
    $clam = new clamav();
    $clam->freshclam_mirrors_selected[$mirror] = $mirror;
    $clam->freshclam_save();
}
Example #2
0
function ClamAVPatterns()
{
    $tpl = new templates();
    $users = new usersMenus();
    if (!$users->CLAMD_INSTALLED) {
        return null;
    }
    if ($users->KASPERSKY_SMTP_APPLIANCE) {
        return;
    }
    $clam = new clamav();
    $array = $clam->LoadDatabasesStatus();
    if (!is_array($array)) {
        return null;
    }
    $html = "\n<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>\n<thead class='thead'>\n\t<tr><th colspan=3>{APP_CLAMAV}</th></tr>\n\t<tr>\n\t\t<th>&nbsp;</th>\n\t\t<th>{date}</th>\n\t\t<th>{pattern}</th>\n\t</tr>\n</thead>\n<tbody class='tbody'>";
    $icon = "datasource-32.png";
    while (list($file, $date) = each($array)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $html = $html . "\n\t\t<tr class={$classtr}>\n\t\t\t<td width=1%><img src='img/{$icon}'></td>\n\t\t\t<td style='font-size:14px;font-weight:bold' nowrap>{$date[1]}</td>\n\t\t\t<td style='font-size:14px'>{$date[0]}</td>\n\t\t</tr>\n\t\t";
    }
    $html = $html . "</table>";
    echo $tpl->_ENGINE_parse_body($html);
}