Whoops! Just realised I never fully finished the deleteunconfirmed
[moodle.git] / admin / phpinfo.php
blobf2501da768cd39f44592a0c77902e946d63504fb
1 <?PHP // $Id$
2 // phpinfo.php - shows phpinfo for the current server
4 require_once("../config.php");
6 require_login();
8 if (!isadmin()) {
9 error("Only the admin can use this page");
12 if (isset($topframe)) {
13 $stradministration = get_string("administration");
14 $site = get_site();
16 print_header("$site->shortname: phpinfo", "$site->fullname",
17 "<a target=\"$CFG->framename\" href=\"index.php\">$stradministration</a> -> PHP info");
18 exit;
21 if (isset($bottomframe)) {
22 phpinfo();
23 exit;
27 <head>
28 <title>PHP info</title>
29 </head>
31 <frameset rows="80,*">
32 <frame src="phpinfo.php?topframe=true">
33 <frame src="phpinfo.php?bottomframe=true">
34 </frameset>