From: x2000habouzit Date: Sun, 22 Oct 2006 23:06:43 +0000 (+0000) Subject: having our phpinfo is handy sometimes, give that to the admins X-Git-Tag: xorg/0.9.12~169 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5f9a40b42ae26275f205e65d74273d6b8d0d338e;p=platal.git having our phpinfo is handy sometimes, give that to the admins admin.php | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletion(-) git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1017 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/admin.php b/modules/admin.php index 2850910..2e8f01a 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -24,7 +24,8 @@ class AdminModule extends PLModule function handlers() { return array( - 'admin' => $this->make_hook('default', AUTH_MDP, 'admin'), + 'phpinfo' => $this->make_hook('phpinfo', AUTH_MDP, 'admin'), + 'admin' => $this->make_hook('default', AUTH_MDP, 'admin'), 'admin/ax-xorg' => $this->make_hook('ax_xorg', AUTH_MDP, 'admin'), 'admin/deaths' => $this->make_hook('deaths', AUTH_MDP, 'admin'), 'admin/downtime' => $this->make_hook('downtime', AUTH_MDP, 'admin'), @@ -44,6 +45,12 @@ class AdminModule extends PLModule ); } + function handler_phpinfo(&$page) + { + phpinfo(); + exit; + } + function handler_default(&$page) { $page->changeTpl('admin/index.tpl');