Add phpinfo page only accessible to admins
This commit is contained in:
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();
|
||||
}
|
||||
Reference in New Issue
Block a user