From 0ff1ec4e58a8c1e26a6369719b95177f234f095d Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 24 Aug 2007 12:49:37 +0000 Subject: [PATCH] Added dns zone edit link git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7136 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNS.inc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index 64328d938..d2ebb5d8e 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -150,6 +150,13 @@ class servdns extends goService } } + if(isset($_GET['act']) && $_GET['act'] == "edit" && isset($_GET['id'])){ + $id = base64_decode($_GET['id']); + if(isset($this->Zones[$id])){ + $this->dialog= new servdnseditZone($this->config,$this->dn,$this->Zones[$id]); + } + } + /* Show dialog */ if($this->dialog!= NULL){ @@ -167,10 +174,13 @@ class servdns extends goService */ $editImg = " "; + + $link = "%s"; foreach($this->Zones as $zone => $values ){ + $ZoneList->AddEntry(array( - array("string" => $zone), - array("string" => _("Reverse zone")." : ".$values['ReverseZone']), + array("string" => sprintf($link,base64_encode($zone),$zone)), + array("string" => sprintf($link,base64_encode($zone),_("Reverse zone")." : ".$values['ReverseZone'])), array("string" => _("TTL")." : ".$values['sOAttl']), array("string" => _("Class")." : ".$values['dNSClass']), array("string" =>str_replace("%s",base64_encode($zone),$editImg)) -- 2.30.2