From 5cb555da00848d6c2ad7386b4bd5aac25498f073 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 11 May 2006 07:03:40 +0000 Subject: [PATCH] Added NCP awarenes for volumes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3276 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servNfs.inc | 11 ++++++++--- plugins/admin/systems/servservice.tpl | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/admin/systems/class_servNfs.inc b/plugins/admin/systems/class_servNfs.inc index 784bf569b..df90c6b69 100644 --- a/plugins/admin/systems/class_servNfs.inc +++ b/plugins/admin/systems/class_servNfs.inc @@ -69,7 +69,7 @@ class servnfs extends plugin if($entry){ list($this->name, $this->description, $this->type, $this->charset, - $this->path, $this->option, $this->volume)= split("\|",$entry); + $this->path, $this->option, $this->volume)= split("\|",$entry."|"); $this->is_edit = true; }else{ @@ -182,13 +182,18 @@ class servnfs extends plugin // only 0-9a-z if(!$this->is_edit){ if(preg_match("/[^a-z0-9\.\-_]/i",$this->name)){ - $message[]=_("Please specify a valid name for your setup."); + $message[]=_("Please specify a valid name for your share."); } if(empty($this->name)){ - $message[]=_("Please specify a name for your setup."); + $message[]=_("Please specify a name for your share."); } } + /* If we've NCP, we need a volume */ + if($this->type == "NCP" && empty($this->volume)){ + $message[]=_("Please specify a valid volume name for your share."); + } + if(preg_match("/\|/",$this->description)){ $message[]=_("Description contains invalid characters."); } diff --git a/plugins/admin/systems/servservice.tpl b/plugins/admin/systems/servservice.tpl index f865aad27..81729b2e0 100644 --- a/plugins/admin/systems/servservice.tpl +++ b/plugins/admin/systems/servservice.tpl @@ -58,7 +58,7 @@ - {t}LDAP Service{/t}  + {t}LDAP Service{/t}
  {t}Base{/t} 

 


-- 2.30.2