mirror of
https://github.com/moodle/moodle.git
synced 2025-05-04 23:41:50 +02:00
Use global variable for phpinfo debugging info
This commit is contained in:
parent
7170501293
commit
07b586eaa3
@ -2,8 +2,8 @@
|
|||||||
// config.php - allows admin to edit all configuration variables
|
// config.php - allows admin to edit all configuration variables
|
||||||
|
|
||||||
|
|
||||||
if (isset($phpinfo)) { // For debugging purposes, protected by password
|
if (isset($_GET['phpinfo'])) { // For debugging purposes, protected by password
|
||||||
if (md5($phpinfo) == "caf9b6b99962bf5c2264824231d7a40c") {
|
if (md5($_GET['phpinfo']) == "caf9b6b99962bf5c2264824231d7a40c") {
|
||||||
phpinfo();
|
phpinfo();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user