From: moodler Date: Sat, 17 May 2003 03:10:22 +0000 (+0000) Subject: Use global variable for phpinfo debugging info X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=07b586eaa36a14051bfae388d3ec82828dbca805;p=moodle.git Use global variable for phpinfo debugging info --- diff --git a/admin/config.php b/admin/config.php index 944e868e15..b144ec2b3e 100644 --- a/admin/config.php +++ b/admin/config.php @@ -2,8 +2,8 @@ // config.php - allows admin to edit all configuration variables - if (isset($phpinfo)) { // For debugging purposes, protected by password - if (md5($phpinfo) == "caf9b6b99962bf5c2264824231d7a40c") { + if (isset($_GET['phpinfo'])) { // For debugging purposes, protected by password + if (md5($_GET['phpinfo']) == "caf9b6b99962bf5c2264824231d7a40c") { phpinfo(); exit; }