diff --git a/setup/class_setup.inc b/setup/class_setup.inc
index 700ea7761d84047d0aa46178782eedcf07b323e6..d1d73fb8ae7c778ea78f4777e4f28c33eac36707 100644 (file)
--- a/setup/class_setup.inc
+++ b/setup/class_setup.inc
function execute()
{
+ /* Display phpinfo() dialog when $_GET['info'] is set,
+ * 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()){
+ phpinfo();
+ }
+
/* display step error msgs */
$msgs = $this->o_steps[$this->i_current]->check();
foreach($msgs as $msg){