From: hickert Date: Fri, 19 May 2006 11:28:38 +0000 (+0000) Subject: Added a check to force a zoneName reverseName to be given X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3f23433981d6f82947ce4a8db770ea4277767e9c;p=gosa.git Added a check to force a zoneName reverseName to be given git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3463 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index 19662d38b..7fcef3aa0 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -355,6 +355,14 @@ class servdnseditZone extends plugin } } + if(empty($this->zoneName)){ + $message[] =sprintf(_("Please choose a valid zone name.")); + } + + if(empty($this->ReverseZone)){ + $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."); }