From: hickert Date: Tue, 14 Feb 2006 13:21:37 +0000 (+0000) Subject: Added some more checks X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ff9ad0e14edc40f165433911935c437aa0ad427;p=gosa.git Added some more checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2693 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index fcfc6780c..4e92d0ce6 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -153,6 +153,22 @@ class servdnseditZone extends plugin } } + if(!preg_match("/\.$/",$this->sOAprimary)){ + $message[] = _("Primary dns server must end with '.' to be a valid entry."); + } + + if(!preg_match("/\.$/",$this->sOAmail)){ + $message[] = _("Your soecified 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($this->zoneName != strtolower($this->zoneName)){ $message[] = _("Only lowercase strings are allowed as zone name."); } diff --git a/plugins/admin/systems/servdnseditzone.tpl b/plugins/admin/systems/servdnseditzone.tpl index 97a1cb3a0..13297a34c 100644 --- a/plugins/admin/systems/servdnseditzone.tpl +++ b/plugins/admin/systems/servdnseditzone.tpl @@ -30,19 +30,19 @@ - - - @@ -52,25 +52,25 @@
{t}Primary dns server for this zone{/t} + {t}Primary dns server for this zone{/t}{$must}
{t}Mail address{/t} + {t}Mail address{/t}{$must}
{t}Serial number (automatically incremented){/t} + {t}Serial number (automatically incremented){/t}{$must} - - - -
{t}Refresh{/t} + {t}Refresh{/t}{$must}
{t}Retry{/t} + {t}Retry{/t}{$must}
{t}Expire{/t} + {t}Expire{/t}{$must}
{t}TTL{/t} + {t}TTL{/t}{$must}