up the PHP info page a bit by using a frame.
echo "<table border=0 align=center width=100%><tr>";
- echo "<td align=center width=50%>";
+ echo "<td align=center width=33%>";
print_single_button("$CFG->wwwroot/doc", NULL, get_string("documentation"));
echo "</td>";
- echo "<td align=center width=50%>";
+ echo "<td align=center width=33%>";
+ print_single_button("phpinfo.php", NULL, get_string("phpinfo"));
+ echo "</td>";
+
+ echo "<td align=center width=33%>";
print_single_button("register.php", NULL, get_string("registration"));
echo "</td>";
echo "<tr></table>";
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();
+ 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;
+ }
- print_footer();
+ 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>
$string['people'] = "People";
$string['personalprofile'] = "Personal profile";
$string['phone'] = "Phone";
+$string['phpinfo'] = "PHP info";
$string['popupwindow'] = "Open file in new window";
$string['potentialadmins'] = "Potential admins";
$string['potentialcreators'] = "Potential course creators";