From: cajus Date: Fri, 1 Feb 2008 13:10:21 +0000 (+0000) Subject: Fixed class seperation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=399973a47079d3f77acd716389537e7a408c219f;p=gosa.git Fixed class seperation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8721 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc index c560c36ac..20db6f1d8 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc @@ -175,8 +175,8 @@ class DNS unset($Zones[$zoneName]); }else{ $tmp = $ldap->fetch(); - $Zones[$zoneName]['ReverseZone'] = FlipIp(str_replace(".in-addr.arpa","",$tmp['zoneName'][0])); - $Zones[$zoneName]['InitialReverseZone'] = FlipIp(str_replace(".in-addr.arpa","",$tmp['zoneName'][0])); + $Zones[$zoneName]['ReverseZone'] = DNS::FlipIp(str_replace(".in-addr.arpa","",$tmp['zoneName'][0])); + $Zones[$zoneName]['InitialReverseZone'] = DNS::FlipIp(str_replace(".in-addr.arpa","",$tmp['zoneName'][0])); } } return($Zones); @@ -191,7 +191,7 @@ class DNS */ static function getDNSZoneEntriesDiff($config,$newZones,$HostDn) { - $oldZones = getDNSZoneEntries($config,$HostDn,true); + $oldZones = DNS::getDNSZoneEntries($config,$HostDn,true); $sOAattributes = array("sOAprimary","sOAmail","sOAserial","sOArefresh","sOAretry","sOAexpire","sOAttl"); @@ -256,9 +256,9 @@ class DNS if(!empty($zone['InitialReverseZone'])){ if($zone['InitialReverseZone'] != $zone['ReverseZone']){ $base = "zoneName=".$zone['zoneName'].",".$HostDn; - $oldRDn = "zoneName=". FlipIp($zone['InitialReverseZone']).".in-addr.arpa,".$base; - $newRDn = "zoneName=". FlipIp($zone['ReverseZone']).".in-addr.arpa,".$base; - $PrePareZoneEntries[FlipIp($zone['InitialReverseZone']).".in-addr.arpa"] = FlipIp($zone['ReverseZone']).".in-addr.arpa"; + $oldRDn = "zoneName=". DNS::FlipIp($zone['InitialReverseZone']).".in-addr.arpa,".$base; + $newRDn = "zoneName=". DNS::FlipIp($zone['ReverseZone']).".in-addr.arpa,".$base; + $PrePareZoneEntries[DNS::FlipIp($zone['InitialReverseZone']).".in-addr.arpa"] = DNS::FlipIp($zone['ReverseZone']).".in-addr.arpa"; $move [$oldRDn] = $newRDn; } } @@ -289,7 +289,7 @@ class DNS /* Create Reverse Entry * And append it to our add queue */ - $zone['ReverseZone'] = FlipIp($zone['ReverseZone']).".in-addr.arpa"; + $zone['ReverseZone'] = DNS::FlipIp($zone['ReverseZone']).".in-addr.arpa"; $base = "zoneName=".$zone['zoneName'].",".$HostDn; $newRDn = "zoneName=".$zone['ReverseZone'].",".$base; $rObj = $obj; @@ -434,7 +434,7 @@ class DNS { global $RecordTypes; - $oldEntry = getDNSHostEntries($config,$oldName); + $oldEntry = DNS::getDNSHostEntries($config,$oldName); $add = array(); $del = array(); diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc index 6ccbade69..9242662a8 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc @@ -354,7 +354,7 @@ class servdnseditZone extends plugin $smarty->assign("NetworkClasses", array("A"=>"255.0.0.0 (Class A)","B"=>"255.255.0.0 (Class B)","C"=>"255.255.255.0 (Class C)")); /* Display tempalte */ - $display.= $smarty->fetch(get_template_path('servdnseditzone.tpl', TRUE)); + $display.= $smarty->fetch(get_template_path('servdnseditzone.tpl', TRUE, dirname(__FILE__))); return($display); }