diff --git a/setup/class_setup.inc b/setup/class_setup.inc
index 2f65cd775989511068ca9c2138954f9d813cfaa6..753751c52537d7e43e28845244038b07f8eea244 100644 (file)
--- a/setup/class_setup.inc
+++ b/setup/class_setup.inc
*/
*/
-/* 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");
require_once("class_setupStep.inc");
}
foreach($this->o_steps as $key => $step){
}
foreach($this->o_steps as $key => $step){
- $this->o_steps[$key]->parent = $this;
+ $this->o_steps[$key]->parent = &$this;
}
}
}
}
* but only do this, if user is allowed to use the setup.
* If setupStep_Welcome is_completed, we are allowed to view those infos-
*/
* 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();
}
phpinfo();
exit();
}
}
return(false);
}
}
return(false);
}
+
+ function step_name_to_id($name)
+ {
+ foreach($this->o_steps as $id => $class){
+ if(get_class($class) == $name){
+ return($id);
+ }
+ }
+ return(0);
+ }
+
}
}