mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
5315b6f2f0
up the PHP info page a bit by using a frame.
35 lines
770 B
PHP
35 lines
770 B
PHP
<?PHP // $Id$
|
|
// phpinfo.php - shows phpinfo for the current server
|
|
|
|
require_once("../config.php");
|
|
|
|
require_login();
|
|
|
|
if (!isadmin()) {
|
|
error("Only the admin can use this page");
|
|
}
|
|
|
|
if (isset($topframe)) {
|
|
$stradministration = get_string("administration");
|
|
$site = get_site();
|
|
|
|
print_header("$site->shortname: phpinfo", "$site->fullname",
|
|
"<a target=\"$CFG->framename\" href=\"index.php\">$stradministration</a> -> PHP info");
|
|
exit;
|
|
}
|
|
|
|
if (isset($bottomframe)) {
|
|
phpinfo();
|
|
exit;
|
|
}
|
|
|
|
?>
|
|
<head>
|
|
<title>PHP info</title>
|
|
</head>
|
|
|
|
<frameset rows="80,*">
|
|
<frame src="phpinfo.php?topframe=true">
|
|
<frame src="phpinfo.php?bottomframe=true">
|
|
</frameset>
|