exit; } if (isset($_GET["aRecord-soa"])) { popup_arecord_edit(); exit; } if (isset($_GET["AddAssociatedDomain"])) { AddPointerDc(); exit; } if (isset($_GET["DelAssociatedDomain"])) { DelPointerDC(); exit; } if (isset($_GET["RefreshDNSList"])) { echo dnslist(); exit; } if (isset($_GET["popup-add-dns"])) { echo popup_adddns(); exit; } if (isset($_GET["SaveDNSEntry"])) { AddDNSEntry(); exit; } if (isset($_GET["DelDNSEntry"])) { DelDNSEntry(); exit; } if (isset($_GET["EnablePDNS"])) {
function popup() { $user = new usersMenus(); if (!$user->POWER_DNS_INSTALLED) { not_installed(); return null; } $add = Paragraphe("dns-cp-add-64.png", "{ADD_DNS_ENTRY}", "{ADD_DNS_ENTRY_TEXT}", "javascript:AddPDNSEntry()"); $nic = Buildicon64('DEF_ICO_IFCFG'); $list = dnslist(); $html = "<H1>{APP_PDNS}</H1>\n\t<p class=caption>{pdns_explain}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t\n\t\t<td valign='top'>\n\t\t\t\t" . RoundedLightWhite("<div id='dns_list' style='width:400px;height:320px;overflow:auto'>{$list}</div>") . "\n\t\t</td>\n\t\t<td valign='top'>{$add}<br>{$nic}<br>" . PDNSStatus() . "</td>\n\t</tr>\n\t</table>\n\t\n\t"; $tpl = new templates(); echo $tpl->_ENGINE_parse_body($html); }
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;} if(isset($_GET["ns-records-list"])){popup_ns_list();exit;} if(isset($_GET["add-ns-record"])){popup_ns_save();exit;} if(isset($_GET["aRecord-soa"])){popup_arecord_edit();exit;} if(isset($_GET["AddAssociatedDomain"])){AddPointerDc();exit;} if(isset($_GET["DelAssociatedDomain"])){DelPointerDC();exit;} if(isset($_GET["RefreshDNSList"])){echo dnslist();exit;} if(isset($_GET["popup-add-dns"])){echo popup_adddns();exit;} if(isset($_GET["SaveDNSEntry"])){AddDNSEntry();exit;} if(isset($_GET["DelDNSEntry"])){DelDNSEntry();exit;} if(isset($_GET["DisablePowerDnsManagement"])){DisablePowerDnsManagement();exit;} if(isset($_GET["EnablePDNS"])){EnablePDNS();exit;} if(isset($_GET["PowerDNSLogsQueries"])){SaveLogsSettings();exit;} if(isset($_GET["PDNSRestartIfUpToMB"])){PDNSRestartIfUpToMB();exit;} if(isset($_POST["PowerDNSMySQLEngine"])){PowerDNSMySQLEngine();exit;} js(); function AddPointerDc(){ $dn=$_GET["AddAssociatedDomain"]; $ldap=new clladp(); $upd["associateddomain"]=$_GET["entry"];