Added a new debugging command so that I can see the config variables
authormoodler <moodler>
Thu, 24 Oct 2002 02:42:26 +0000 (02:42 +0000)
committermoodler <moodler>
Thu, 24 Oct 2002 02:42:26 +0000 (02:42 +0000)
admin/config.php

index 478f61c..665dddc 100644 (file)
         }
     }
 
+    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()) {