diff --git a/setup/class_setup.inc b/setup/class_setup.inc
index d93dada1d685fb25ec465d7441cd5b968b056e03..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();
}