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

(to help with configuration problems!).
This commit is contained in:
moodler
2003-01-02 07:37:28 +00:00
parent 33e5f52c01
commit 5b4fd9c20a
+3 -5
View File
@@ -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()) {