Code

Added FAIprofile selection for Workstations
[gosa.git] / plugins / admin / fai / class_faiScriptEntry.inc
index 2e7341729d8d140d54d7f4429f408eb82ac240d3..1fb0239d9088aa3a47b1b1d011c65f719399a986 100644 (file)
@@ -56,12 +56,15 @@ class faiScriptEntry extends plugin
     }
 
   
-
     foreach($this->attributes as $attrs){
-      $smarty->assign($attrs,stripslashes($this->$attrs));
+      if(get_magic_quotes_gpc()){
+       $smarty->assign($attrs,stripslashes($this->$attrs));
+      }else{
+       $smarty->assign($attrs,($this->$attrs));
+      } 
     }
 
-    for($i =1 ; $i <= 100 ; $i++){
+    for($i =0 ; $i < 100 ; $i++){
       $Object_FAIprioritys[$i]=$i;
     }
     $smarty->assign("Object_FAIprioritys",$Object_FAIprioritys);
@@ -88,12 +91,6 @@ class faiScriptEntry extends plugin
   {
     $message= array();
   
-    $str = utf8_encode("üöä");
-
-    if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->Object_description)){
-      $message[] = _("Invalid character in description. Please enter a valid description.");
-    }
-
     if(empty($this->Object_cn)){
       $message[] = _("Please enter a name.");
     }