Code

Updating spanish translation for gosa 2.5
[gosa.git] / setup / class_setup.inc
index 069628a3e60caec4f121d8d33e671aba7b6e15b6..753751c52537d7e43e28845244038b07f8eea244 100644 (file)
 */
 
 
-/* Returns contents of the given POST variable and check magic quotes settings */
-function get_post($name)
-{
-  if(!isset($_POST[$name])){
-    trigger_error("Requested POST value (".$name.") does not exists, you should add a check to prevent this message.");
-    return(FALSE);
-  }
-  if(get_magic_quotes_gpc()){
-    return(stripcslashes($_POST[$name]));
-  }else{
-    return($_POST[$name]);
-  }
-}
-
 require_once("class_setupStep.inc");
 
 
@@ -79,7 +65,7 @@ class setup
      *  but only do this, if user is allowed to use the setup.
      * If setupStep_Welcome is_completed, we are allowed to view those infos-
      */
-    if(isset($_GET['info']) && get_class($this->o_steps[1]) == "Step_Welcome" && $this->o_steps[1]->is_completed()){
+    if(isset($_GET['info']) &&  preg_match("/Step_Welcome/i",get_class($this->o_steps[1])) && $this->o_steps[1]->is_completed()){
       phpinfo();
       exit();
     }