diff --git a/admin/phpinfo.php b/admin/phpinfo.php index b8265bbaa1c..a71cdee7a93 100644 --- a/admin/phpinfo.php +++ b/admin/phpinfo.php @@ -3,32 +3,37 @@ require_once("../config.php"); + $topframe = optional_param('topframe', false, PARAM_BOOL); + $bottomframe = optional_param('bottomframe', false, PARAM_BOOL); + require_login(); if (!isadmin()) { error("Only the admin can use this page"); } - if (isset($topframe)) { + if (!$topframe && !$bottomframe) { + ?> + + + PHP info + + + + + + + + shortname: phpinfo", "$site->fullname", + + print_header("$site->shortname: phpinfo", "$site->fullname", "framename\" href=\"index.php\">$stradministration -> PHP info"); exit; - } - - if (isset($bottomframe)) { + } else if ($bottomframe && confirm_sesskey()) { phpinfo(); exit; } - ?> - -PHP info - - - - - -