Code

Added some comments
[gosa.git] / plugins / admin / systems / class_servNfs.inc
index 95957ecc554abb8ae838a8128c89ef37cf3313a1..d7012296e3fe621e012fd14cfde02d81579263cf 100644 (file)
@@ -33,7 +33,8 @@ class servnfs extends plugin
         "ISO8859-2"=>"ISO8859-2 (Latin 2)",
         "ISO8859-3"=>"ISO8859-3 (Latin 3)",
         "ISO8859-4"=>"ISO8859-4 (Latin 4)",
-        "ISO8859-5"=>"ISO8859-5 (Latin 5)");
+        "ISO8859-5"=>"ISO8859-5 (Latin 5)",
+        "cp850"=>"CP850 (Europe)");
 
     if($entry){
       $tmp = split("\|",$entry);
@@ -51,6 +52,9 @@ class servnfs extends plugin
 
   function execute()
   {
+       /* Call parent execute */
+       plugin::execute();
+
     /* Fill templating stuff */
     $smarty= get_smarty();
 
@@ -111,6 +115,18 @@ class servnfs extends plugin
       }
     }
 
+    if(preg_match("/\|/",$this->description)){
+      $message[]=_("Description contains invalid characters.");
+    }
+  
+    if(preg_match("/\|/",$this->path)){
+      $message[]=_("Path contains invalid characters.");
+    }
+
+    if(preg_match("/\|/",$this->option)){
+      $message[]=_("Option contains invalid characters.");
+    }
+
     $ldap= $this->config->get_ldap_link();
     $ldap->cd($this->config->current['BASE']);
     $ldap->search("(objectClass=goShareServer)", array("goExportEntry"));