Code

Uodate some checks, and added disk1 disk2
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Sep 2005 09:14:48 +0000 (09:14 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Sep 2005 09:14:48 +0000 (09:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1314 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/FAI/class_askClassName.inc
plugins/admin/FAI/class_faiPartitionTableEntry.inc

index 46f83eca8147982a54b8fb000d9d99bbabb50cbd..15c87f0a4fe9f379078d59a87eccdb1ec8cf4c81 100644 (file)
@@ -127,7 +127,12 @@ class askClassName extends plugin
 
     if(in_array($this->ClassName,$this->forbidden)){
       $message[]=_("The specified class name is already in use for this object type.");
-    } 
+    }
+
+    if(preg_match("/[^a-z0-9]/i",$this->ClassName)){
+      $message[]=_("Please enter a valid class name. Only 0-9 a-z is allowed here.");
+    }
     return ($message);
   }
 
index c56e71d95cb1ac8d173a9c60dd41af571184aeea..a42958123caba08539793d58d6be7aad9b8682b9 100644 (file)
@@ -37,6 +37,8 @@ class faiPartitionTableEntry extends plugin
       }
     }
     
+    $this->AvailableDiskNames['disk1']= "disk1";
+    $this->AvailableDiskNames['disk2']= "disk2";
     /* Default status is new */
     $this->status = "new";