exit;
}
if (isset($_GET["DNS_HOSTNAME"])) {
    DnsBlackListAdd();
    exit;
}
if (isset($_GET["DnsBlackListEdit"])) {
    DnsBlackListEdit();
    exit;
}
if (isset($_GET["DnsBlackListDelete"])) {
    DnsBlackListDelete();
    exit;
}
if (isset($_GET["kasinfos"])) {
    RightInfos();
    exit;
}
if (isset($_GET["ajax-pop"])) {
    popup();
    exit;
}
switch ($_GET["page"]) {
    case 1:
        $page = PageKas3ProcessServer();
        break;
    case 2:
        $page = PageKas3DNSBlackSettings();
        break;
    default:
        $page = PageKas3MTAClientsSettings();
function PageKas3UpdateConfig()
{
    $yum = new usersMenus();
    $page = CurrentPageName();
    $tpl = new templates();
    if ($yum->AsPostfixAdministrator == false) {
        return $tpl->_ENGINE_parse_body("<h3>{not allowed}</H3>");
    }
    $kas = new kas_filter();
    $cron = $kas->CronTask();
    $kas = new kasUpdater();
    $array_conf = $kas->array_updater_data["updater.options"];
    $UseUpdateServerUrl = Field_yesno_checkbox_img('UseUpdateServerUrl', $array_conf["UseUpdateServerUrl"]);
    $UseUpdateServerUrlOnly = Field_yesno_checkbox_img('UseUpdateServerUrlOnly', $array_conf["UseUpdateServerUrlOnly"]);
    $PassiveFtp = Field_yesno_checkbox_img('PassiveFtp', $array_conf["PassiveFtp"]);
    $UseProxy = Field_yesno_checkbox_img('UseProxy', $array_conf["UseProxy"]);
    $ProxyAddress = Field_text('ProxyAddress', $array_conf["ProxyAddress"]);
    $artica = new artica_general();
    if ($artica->ArticaProxyServerEnabled == 'yes') {
        $UseProxy = "<input type='hidden' value='yes' name='UseProxy'><strong>Yes</strong>";
        $ProxyAddress = "<input type='hidden' value='yes' name='ProxyAddress'><a href='artica.settings.php'><b>{$artica->ArticaCompiledProxyUri}</b></a>";
    }
    $config1 = "\n\t\t\t\t\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrl}</td>\n\t\t<td align='left'><strong>{UseUpdateServerUrl}</strong></td>\n\t\t\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrlOnly}</td>\n\t\t<td align='left'><strong>{UseUpdateServerUrlOnly}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$PassiveFtp}</td>\n\t\t<td align='left'><strong>{PassiveFtp}</strong></td>\n\t\t</tr>\t\t\t\n\t\t</table>";
    $config1 = RoundedLightGrey($config1);
    $proxy = "\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td align='right' width=30% nowrap><strong>{UpdateServerUrl}:</strong></td>\n\t\t<td align='left' nowrap>" . Field_text('UpdateServerUrl', $array_conf["UpdateServerUrl"]) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right' nowrap><strong>{UseProxy}:</strong></td>\n\t\t<td align='left'>{$UseProxy}</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t<td align='right' nowrap><strong>{ProxyAddress}:</strong></td>\n\t\t<td align='left'>{$ProxyAddress}</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right' nowrap><strong>{ConnectTimeout}:</strong></td>\n\t\t<td align='left'>" . Field_text('ConnectTimeout', $array_conf["ConnectTimeout"], 'width:30px') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:ParseForm('ffmupdate','domains.php',true);\" value='{submit}&nbsp;&raquo;'></td>\n\t\t</tr>\n\t\t</table>";
    $proxy = RoundedLightGrey($proxy);
    $html = "\n\t\t<form name=ffmupdate>\n\t\t\n\t\t<input type='hidden' name=kas3UpdaterConfig value='kas3UpdaterConfig'>\n\t\t\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top'>\n\t\t<br><H5>{keepup2date settings}</H5><br>\n\t\t\n\t\t{$config1}<br>{$proxy}<br>" . tabs() . "<br><div id='middle_area'></div>\n\t\t<script>LoadAjax('middle_area','{$page}?section=yes&tab=0')</script></td>\n\t\t\n\t\t<td valign='top' width=40%>" . RightInfos() . "</td>\n\t\t</tr>\n\t\t</table>\n\t\t<br>\n\t\t\n\t\t<br>\n\n\t\t</form>\n\t\t<br>\n\n\t\t\n\t\n\t";
    return $tpl->_ENGINE_parse_body($html);
}