diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2014-02-14 17:37:42 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2014-02-14 17:37:42 +0000 |
commit | e89b7c1e9d73d3a7ae9916d048a7ea43f56d279a (patch) | |
tree | 58bc1ae39f67736cc66950f5eb16213711d2522b | |
parent | 4f1a1db1539e819e5c40ec14453c4c709810e1bd (diff) | |
download | rpg-e89b7c1e9d73d3a7ae9916d048a7ea43f56d279a.tar.gz rpg-e89b7c1e9d73d3a7ae9916d048a7ea43f56d279a.tar.bz2 |
Add Apache module list to ?do=debug information
This should make it possible to see if mod_security is involved,
at least on servers running mod_php.
-rw-r--r-- | inc/html.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/html.php b/inc/html.php index 5941a9af2..928991ae2 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1634,6 +1634,17 @@ function html_debug(){ print_r($inis); print '</pre>'; + if (function_exists('apache_get_version')) { + $apache['version'] = apache_get_version(); + + if (function_exists('apache_get_modules')) { + $apache['modules'] = apache_get_modules(); + } + print '<b>Apache</b><pre>'; + print_r($apache); + print '</pre>'; + } + print '</body></html>'; } |