From: hickert Date: Mon, 22 Mar 2010 10:10:43 +0000 (+0000) Subject: Updated dns zone entry editor X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8a37fe61fc4987a8c2cd3b80e823ac1343af677c;p=gosa.git Updated dns zone entry editor git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16982 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc index 674ad057f..0a89013f6 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZoneEntries.inc @@ -92,7 +92,7 @@ class servDNSeditZoneEntries extends plugin /* Add a new Record in given object */ - $tmp = preg_replace("/^.*_(.*)_.*$/","\\1",$name); + $tmp = preg_replace("/^.*_(.*)$/","\\1",$name); $tmp2 = explode("|",$tmp); /* Add new host entry @@ -142,6 +142,7 @@ class servDNSeditZoneEntries extends plugin /* Possible attributes posted */ + print_a($_POST); foreach($_POST as $name => $value){ /* Extract informations out of post name @@ -152,6 +153,7 @@ class servDNSeditZoneEntries extends plugin if(count($tmp2) != 2) continue; $Name = base64_decode($tmp2[0]); + $RecordID = $tmp2[1]; /* Check for value change @@ -241,6 +243,7 @@ class servDNSeditZoneEntries extends plugin $ldap->cd($this->config->current['BASE']); $names = array(); + foreach($this->Devices as $DevName => $device){ /* Don't need to check empty values ... */ @@ -451,10 +454,8 @@ class servDNSeditZoneEntries extends plugin $field2 = $this->createRecordTypeSelection($record['type'],$name); $field3 = ""; if(preg_match("/w/",$this->acl)){ - $acl = " - "; + $acl = image('images/lists/element.png[new]',"AddRecord_".$name,_("Add")); + $acl.= image('images/lists/trash.png',"RemoveRecord_".$name,_("Remove")); } /* Display settings backwards for CNAMERecords