summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 58fe967)
raw | patch | inline | side by side (parent: 58fe967)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Sep 2005 09:14:48 +0000 (09:14 +0000) | ||
committer | hickert <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 | patch | blob | history | |
plugins/admin/FAI/class_faiPartitionTableEntry.inc | patch | blob | history |
index 46f83eca8147982a54b8fb000d9d99bbabb50cbd..15c87f0a4fe9f379078d59a87eccdb1ec8cf4c81 100644 (file)
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);
}
diff --git a/plugins/admin/FAI/class_faiPartitionTableEntry.inc b/plugins/admin/FAI/class_faiPartitionTableEntry.inc
index c56e71d95cb1ac8d173a9c60dd41af571184aeea..a42958123caba08539793d58d6be7aad9b8682b9 100644 (file)
}
}
+ $this->AvailableDiskNames['disk1']= "disk1";
+ $this->AvailableDiskNames['disk2']= "disk2";
/* Default status is new */
$this->status = "new";