From b81f51cb52430b93fd61792dbe704ef02d33f8d3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 27 Apr 2007 12:49:43 +0000 Subject: [PATCH] Added info parameter, to display phpinfo(). Initial checkin, this is not the best solution. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6206 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setup.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup/class_setup.inc b/setup/class_setup.inc index 700ea7761..d1d73fb8a 100644 --- a/setup/class_setup.inc +++ b/setup/class_setup.inc @@ -59,6 +59,14 @@ class setup 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){ -- 2.30.2