]> git.mjollnir.org Git - moodle.git/commitdiff
Added a link to the PHP info page from the admin page, and cleaned
authormoodler <moodler>
Mon, 25 Aug 2003 14:56:46 +0000 (14:56 +0000)
committermoodler <moodler>
Mon, 25 Aug 2003 14:56:46 +0000 (14:56 +0000)
up the PHP info page a bit by using a frame.

admin/index.php
admin/phpinfo.php
lang/en/moodle.php

index e6ea3a09f0517f9afbb5bcd71ed7578ad445a71f..2fe7dc90bb1920d1b036302f3a8e693237fd2348 100644 (file)
 
 
     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>";
index 57da9a79bdeb7204e425079f2e931135dfaa1f1f..f2501da768cd39f44592a0c77902e946d63504fb 100644 (file)
@@ -9,14 +9,26 @@
         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>
index 9481f2cc77026328c107128b3a33940c13496f62..c7fa67cf215d833fd77740057ffa9c85eb34566c 100644 (file)
@@ -597,6 +597,7 @@ $string['passwordsenttext'] = "
 $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";