From: hickert Date: Wed, 15 Mar 2006 08:38:49 +0000 (+0000) Subject: Added remove check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6284bd4e78d4dff8437e77570c31b0d198cce270;p=gosa.git Added remove check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2842 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index a876012c4..fb0cd3241 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -244,7 +244,17 @@ class servdns extends plugin $tmp = base64_decode(preg_replace("/_.*$/","",$tmp)); $zones = $this->getUsedZoneNames(); - $rev = $this->Zones[$tmp]['ReverseZone']; + + if(isset($this->Zones[$tmp]['InitialreverseZone'])){ + $rev = $this->FlipIp($this->Zones[$tmp]['InitialreverseZone']); + }else{ + $rev = $this->FlipIp($this->Zones[$tmp]['ReverseZone']); + } + + if(isset($this->Zones[$tmp]['InitialzoneName'])){ + $tmp= $this->Zones[$tmp]['InitialzoneName']; + } + $res = array_merge(($zones[$tmp]),($zones[$rev.".in-addr.arpa"])); if(count($res)){ @@ -259,7 +269,7 @@ class servdns extends plugin if(count($res)> 2) $str .=" ... "; print_red(sprintf(_("Can't delete the selected zone, because it is still in use by these entry/entries '%s'"),trim($str))); }else{ - unset($this->Zones[$tmp]); +// unset($this->Zones[$tmp]); } } }