From: moodler Date: Thu, 24 Oct 2002 02:42:26 +0000 (+0000) Subject: Added a new debugging command so that I can see the config variables X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3d27c2c201c6f315fd70cbc53df2de06ec0a00ba;p=moodle.git Added a new debugging command so that I can see the config variables --- diff --git a/admin/config.php b/admin/config.php index 478f61ce05..665dddcc71 100644 --- a/admin/config.php +++ b/admin/config.php @@ -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()) {