Code

Added remove check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Mar 2006 08:38:49 +0000 (08:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Mar 2006 08:38:49 +0000 (08:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2842 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNS.inc

index a876012c44dc99e782d5cc963aa125498dc8c839..fb0cd32417a96bc29fa8a7cb60d51f424adf829c 100644 (file)
@@ -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]);
         }
       }
     }