From 5315b6f2f0cdd755bb5710a0f6a68c6e93f902e3 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 25 Aug 2003 14:56:46 +0000 Subject: [PATCH] Added a link to the PHP info page from the admin page, and cleaned up the PHP info page a bit by using a frame. --- admin/index.php | 8 ++++++-- admin/phpinfo.php | 28 ++++++++++++++++++++-------- lang/en/moodle.php | 1 + 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/admin/index.php b/admin/index.php index e6ea3a09f0..2fe7dc90bb 100644 --- a/admin/index.php +++ b/admin/index.php @@ -418,11 +418,15 @@ echo ""; - echo ""; - echo ""; + + echo ""; echo "
"; + echo ""; print_single_button("$CFG->wwwroot/doc", NULL, get_string("documentation")); echo ""; + echo ""; + print_single_button("phpinfo.php", NULL, get_string("phpinfo")); + echo ""; print_single_button("register.php", NULL, get_string("registration")); echo "
"; diff --git a/admin/phpinfo.php b/admin/phpinfo.php index 57da9a79bd..f2501da768 100644 --- a/admin/phpinfo.php +++ b/admin/phpinfo.php @@ -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", - "$stradministration -> phpinfo"); - - phpinfo(); + if (isset($topframe)) { + $stradministration = get_string("administration"); + $site = get_site(); + + print_header("$site->shortname: phpinfo", "$site->fullname", + "framename\" href=\"index.php\">$stradministration -> PHP info"); + exit; + } - print_footer(); + if (isset($bottomframe)) { + phpinfo(); + exit; + } ?> + +PHP info + + + + + + diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 9481f2cc77..c7fa67cf21 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -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"; -- 2.39.5