summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adc8bc8)
raw | patch | inline | side by side (parent: adc8bc8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jun 2007 09:41:53 +0000 (09:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 27 Jun 2007 09:41:53 +0000 (09:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6720 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZone.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc
index fc5c81c5efdfaa04c48205b5de4f49892fec985c..841a5b4327ac4b6ddb50679020d912d9bea85730 100644 (file)
}else{
$this->ZoneObject = $attrs;
+
$this->OldZoneName = $attrs['zoneName'];
$this->OldReverseZone = $attrs['ReverseZone'];
$this->$value = $attrs[$value];
}
}
+
+ $this->sOAmail = preg_replace("/\./","@",$this->sOAmail,1);
+ $this->sOAmail = preg_replace("/\.$/","",$this->sOAmail);
+ $this->sOAprimary = preg_replace("/\.$/","",$this->sOAprimary);
+
+
if(isset($attrs['RECORDS'])){
$this->Records = $attrs['RECORDS'];
$message[] =sprintf(_("Please choose a valid reverse zone name."));
}
- if(!preg_match("/\.$/",$this->sOAprimary)){
- $message[] = _("Primary dns server must end with '.' to be a valid entry.");
- }
-
- if(!preg_match("/\.$/",$this->sOAmail)){
- $message[] = _("Your specified mail address must end with '.' to be a valid record.");
- }
-
- if(preg_match("/@/",$this->sOAmail)){
- $message[] = _("Your mail address contains '@' replace this with '.' to enable GOsa to create a valid SOA record.");
- }
-
- if(preg_match("/@/",$this->sOAmail)){
- $message[] = _("Your mail address contains '@' replace this with '.' to enable GOsa to create a valid SOA record.");
- }
-
if(getNameFromMix($this->zoneName) != strtolower(getNameFromMix($this->zoneName))){
$message[] = _("Only lowercase strings are allowed as zone name.");
}
$ret['InitialReverseZone']= $this->InitialReverseZone;
$ret['InitialzoneName'] = $this->InitialzoneName;
+ $ret['sOAmail'] = preg_replace("/\@/",".",$this->sOAmail);
+ $ret['sOAmail'] = $ret['sOAmail'].".";
+ $ret['sOAprimary'] = $ret['sOAprimary'].".";
+
return($ret);
}