From: hickert Date: Fri, 27 Apr 2007 12:49:43 +0000 (+0000) Subject: Added info parameter, to display phpinfo(). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b81f51cb52430b93fd61792dbe704ef02d33f8d3;p=gosa.git 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 --- 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){