Permalink
Browse files

Allow phpinfo() debugging to occur even if Moodle isn't configured yet

(to help with configuration problems!).
  • Loading branch information...
1 parent 33e5f52 commit 5b4fd9c20aae03d67dbb73276210909ac45cf9e6 moodler committed Jan 2, 2003
Showing with 3 additions and 5 deletions.
  1. +3 −5 admin/config.php
View
8 admin/config.php
@@ -1,19 +1,17 @@
<?PHP // $Id$
// config.php - allows admin to edit all configuration variables
- include("../config.php");
- require("../lib/countries.php");
if (isset($phpinfo)) { // For debugging purposes, protected by password
if (md5($phpinfo) == "caf9b6b99962bf5c2264824231d7a40c") {
- if ($site = get_site()) {
- print_heading("$site->fullname");
- }
phpinfo();
exit;
}
}
+ require("../config.php");
+ require("../lib/countries.php");
+
if (isset($config)) { // For debugging purposes, protected by password
if (md5($config) == "caf9b6b99962bf5c2264824231d7a40c") {
if ($site = get_site()) {

0 comments on commit 5b4fd9c

Please sign in to comment.