summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b653102)
raw | patch | inline | side by side (parent: b653102)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Feb 2006 07:35:26 +0000 (07:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 8 Feb 2006 07:35:26 +0000 (07:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2639 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 eda11ea1986ed819198d95cae97abbbf107a9678..d95d24a54677e3cca539f81b0bda61a12dd612a3 100644 (file)
$message[] =_("This reverse zone is already in use");
}
}
+
+ if($this->zoneName != strtolower($this->zoneName)){
+ $message[] = _("Only lowercase strings are allowed as zone name.");
+ }
+
+ if(!is_numeric($this->sOAserial)){
+ $message[] = _("Please specify a numeric value for serial number.");
+ }
+
+ if(!is_numeric($this->sOArefresh)){
+ $message[] = _("Please specify a numeric value for refresh.");
+ }
+
+ if(!is_numeric($this->sOAttl)){
+ $message[] = _("Please specify a numeric value for ttl.");
+ }
+
+ if(!is_numeric($this->sOAexpire)){
+ $message[] = _("Please specify a numeric value for expire.");
+ }
+
+ if(!is_numeric($this->sOAretry)){
+ $message[] = _("Please specify a numeric value for retry.");
+ }
+
+ foreach($this->Records as $name => $values){
+ /* only lower-case is allowed in record entries ... */
+ if($values['value'] != strtolower($values['value'])){
+ $message[] = sprintf(_("Only lowercase is allowed, please check your '%ss'."),$values['type']);
+ }
+ }
return ($message);
}