Add phpinfo page only accessible to admins
This commit is contained in:
parent
8f1f2c8366
commit
fb0a21c0a2
2 changed files with 19 additions and 2 deletions
16
mod/phpinfo.php
Normal file
16
mod/phpinfo.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
/**
|
||||
* @file mod/phpinfo.php
|
||||
*/
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
function phpinfo_content()
|
||||
{
|
||||
if (!is_site_admin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
phpinfo();
|
||||
killme();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue