Permalink
Browse files

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

  • Loading branch information...
1 parent f6b502d commit 3d27c2c201c6f315fd70cbc53df2de06ec0a00ba moodler committed Oct 24, 2002
Showing with 13 additions and 0 deletions.
  1. +13 −0 admin/config.php
View
@@ -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()) {

0 comments on commit 3d27c2c

Please sign in to comment.