Added a new debugging command so that I can see the config variables

This commit is contained in:
moodler
2002-10-24 02:42:26 +00:00
parent f6b502d246
commit 3d27c2c201
+13
View File
@@ -13,6 +13,19 @@
}
}
if (isset($config)) { // For debugging purposes, protected by password
if (md5($config) == "caf9b6b99962bf5c2264824231d7a40c") {
if ($site = get_site()) {
print_heading("$site->fullname");
}
$TEMPCFG = $CFG;
unset($TEMPCFG->dbuser);
unset($TEMPCFG->dbpass);
print_object($TEMPCFG);
exit;
}
}
if ($site = get_site()) { // If false then this is a new installation
require_login();
if (!isadmin()) {