Beispiel #1
0
    exit;
}
if (isset($_GET["zone_save"])) {
    SaveZoneConfig();
    exit;
}
if (isset($_GET["zone-hosts-list"])) {
    echo zone_hosts_lits($_GET["zone-hosts-list"]);
    exit;
}
if (isset($_GET["search-hosts"])) {
    echo zone_hosts_lits($_GET["zone"]);
    exit;
}
if (isset($_GET["show-zones"])) {
    echo main_zones_list();
    exit;
}
if (isset($_GET["AddNewDnsZone"])) {
    AddNewDnsZone();
    exit;
}
if (isset($_GET["status"])) {
    echo main_status();
    exit;
}
if (isset($_GET["zone_delete"])) {
    zone_delete();
    exit;
}
if (isset($_GET["compile-bind"])) {
Beispiel #2
0
function main_zones()
{
    $tab = main_tabs();
    $bind = new bind9();
    $addzone = RoundedLightGrey(Paragraphe("64-bind9-add-zone.png", '{add_new_zone}', "{add_new_zone_tex}", "javascript:AddNewDnsZone()"));
    //
    $html = "{$tab}<H3>{dns_zones}</h3>\n\t<input type='hidden' name='ZoneDeleteWarning' id='ZoneDeleteWarning' value='{ZoneDeleteWarning}'>\n\t<input type='hidden' name='AddNewDnsZone_explain' id='AddNewDnsZone_explain' value='{AddNewDnsZone_explain}'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t<div id='zones'>" . main_zones_list() . "</div>\n\t\t</td>\n\t\t<td valign='top' width=1%>{$addzone}</td>\n\t</tr>\n\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}