From: hickert Date: Mon, 22 Mar 2010 08:44:11 +0000 (+0000) Subject: Updated dns service X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e28a7b4bb7a2859b91545f6ff0a08bc4f1b18b51;p=gosa.git Updated dns service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16976 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc index b1a2f38b6..6dc1ab6c6 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc @@ -209,8 +209,7 @@ class servdns extends goService */ if(preg_match("/^editZone_/",$name)&&!$once){ $once =true; - $tmp = preg_replace("/^editZone_/","",$name); - $tmp = base64_decode(preg_replace("/_.*$/","",$tmp)); + $tmp = postDecode(preg_replace("/^editZone_/","",$name)); $this->dialog= new servdnseditZone($this->config,$this->dn,$this->Zones[$tmp]); } @@ -219,8 +218,7 @@ class servdns extends goService if(preg_match("/^delZone_/",$name)&&!$once){ $once =true; - $tmp = preg_replace("/^delZone_/","",$name); - $tmp = base64_decode(preg_replace("/_.*$/","",$tmp)); + $tmp = postDecode(preg_replace("/^delZone_/","",$name)); /* Initiate deletion */ @@ -229,14 +227,14 @@ class servdns extends goService } if(isset($_GET['act']) && $_GET['act'] == "edit" && isset($_GET['id'])){ - $id = base64_decode($_GET['id']); + $id = postDecode($_GET['id']); if(isset($this->Zones[$id])){ $this->dialog= new servdnseditZone($this->config,$this->dn,$this->Zones[$id]); } } if(isset($_GET['act']) && $_GET['act'] == "edit" && isset($_GET['id'])){ - $id = base64_decode($_GET['id']); + $id = postDecode($_GET['id']); if(isset($this->Zones[$id])){ $this->dialog= new servdnseditZone($this->config,$this->dn,$this->Zones[$id]); } @@ -257,19 +255,19 @@ class servdns extends goService /* Add entries to divlist */ - $editImg = ""; + $editImg = image('images/lists/edit.png','editZone_%s'); if($this->acl_is_removeable()){ - $editImg.= ""; + $editImg.= image('images/lists/trash.png','delZone_%s'); } - $link = "%s"; + $link = "%s"; foreach($this->Zones as $zone => $values ){ $ZoneList->AddEntry(array( - array("string" => sprintf($link,base64_encode($zone),($zone))), - array("string" => sprintf($link,base64_encode($zone),_("Reverse zone")." : ".($values['ReverseZone']))), + array("string" => sprintf($link,postEncode($zone),($zone))), + array("string" => sprintf($link,postEncode($zone),_("Reverse zone")." : ".($values['ReverseZone']))), array("string" => _("TTL")." : ".$values['sOAttl']), array("string" => _("Class")." : ".$values['dNSClass']), - array("string" =>str_replace("%s",base64_encode($zone),$editImg)) + array("string" =>str_replace("%s",postEncode($zone),$editImg)) )); } diff --git a/gosa-plugins/dns/admin/systems/services/dns/servdns.tpl b/gosa-plugins/dns/admin/systems/services/dns/servdns.tpl index e70556c81..7d3aa9977 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/servdns.tpl +++ b/gosa-plugins/dns/admin/systems/services/dns/servdns.tpl @@ -1,60 +1,67 @@ + + {if $dns_take_over}
-

{t}DNS take over initiated{/t}

- {$warning} - {t}This includes 'all' DNS zones that are located within this server. Please double check if your really want to do this.{/t} -

{$warning2}
- +

{t}DNS take over initiated{/t} +

+ {$warning}{t}This includes 'all' DNS zones that are located within this server. Please double check if your really want to do this.{/t} +

+ {$warning2} +
+

{t}Following objects will be taken over{/t} :

-

{$info}
+
+      {$info}
+     

-{else} + {else} + + + {if $dns_server_list_cnt} + + + + {/if} -
+ {t}Take over DNS configuration from{/t}  + + +
- {if $dns_server_list_cnt} - - {/if} - - - -
- {t}Take over DNS configuration from{/t}  - - -
-

{t}Zones{/t}

{$ZoneList} {if $is_createable} - {else} + {else} {/if} -
+ + + + {/if}
- -
- +
+