exit; } if (isset($_POST["RestartPDNS"])) { RestartPDNS(); exit; } if (isset($_POST["RemoteAddAddr"])) { listen_ip_add(); exit; } if (isset($_POST["RemoteDelAddr"])) { listen_ip_del(); exit; } if (isset($_GET["status"])) { status_section(); exit; } if (isset($_GET["PowerDNS-status"])) { PDNSStatus(); exit; } if (isset($_GET["logs"])) { events(); exit; } if (isset($_GET["syslog-table"])) { events_query(); exit; } if (isset($_GET["popup-dn"])) {
function main_switch() { cookies_main(); //if(GET_CACHED(__FILE__,__FUNCTION__,$_GET["main"])){return;} $array["transport_settings"] = '{transport_settings}'; $array["security_settings"] = '{security_settings}'; $array["tweaks"] = '{tweaks}'; if (isset($_GET["ajaxmenu"])) { echo "<div id='main_config_postfix'>"; } switch ($_GET["main"]) { case "transport_settings": $html = Transport_rules_redirect(); //SET_CACHED(__FILE__,__FUNCTION__,$_GET["main"],$html); echo $html; break; case "transport_settings_rules": $html = Transport_rules(); //SET_CACHED(__FILE__,__FUNCTION__,$_GET["main"],$html); echo $html; break; case "security_settings": $html = security(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "security2": $html = security2(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "tweaks": $html = tweaks(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "filters": $html = filters_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "mailbox": $html = mailbox_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "status": $html = status_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; case "filters-connect": $html = filters_connect_section(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; default: $html = Transport_rules(); SET_CACHED(__FILE__, __FUNCTION__, $_GET["main"], $html); echo $html; break; } if (isset($_GET["ajaxmenu"])) { echo "</div>"; } }
die();exit(); } } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["config"])){config();exit;} if(isset($_GET["network-pdns-table"])){listen_ip_list();exit;} if(isset($_POST["RemoteAddAddr"])){listen_ip_add();exit;} if(isset($_POST["RemoteDelAddr"])){listen_ip_del();exit;} if(isset($_GET["status"])){status_section();exit;} if(isset($_GET["PowerDNS-status"])){PDNSStatus();exit;} if(isset($_GET["logs"])){events();exit;} if(isset($_GET["syslog-table"])){events_query();exit;} if(isset($_GET["popup-dn"])){popup_dn_tabs();exit;} if(isset($_GET["record"])){popup_record();exit;} if(isset($_GET["mx"])){popup_mx();exit;} if(isset($_GET["mx-record-list"])){popup_mx_list();exit;} if(isset($_GET["mx-records-list"])){popup_mx_records();exit;} if(isset($_GET["delete-mx-record"])){popup_mx_delete();exit;} if(isset($_GET["add-mx-record"])){popup_mx_save();exit;} if(isset($_GET["ns-record-field"])){popup_ns_field();exit;}