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; } js(); function AddPointerDc() { $dn = $_GET["AddAssociatedDomain"]; $ldap = new clladp();
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"]; if(!$ldap->Ldap_add_mod($dn,$upd)){echo $ldap->ldap_last_error;return;}