1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-09 02:10:00 +01:00

23 lines
476 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");
}
$stradministration = get_string("administration");
$site = get_site();
print_header("$site->shortname: phpinfo", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> phpinfo");
phpinfo();
print_footer();
?>