Add phpinfo page only accessible to admins

This commit is contained in:
Hypolite Petovan
2018-02-03 01:26:28 -05:00
parent 8f1f2c8366
commit fb0a21c0a2
2 changed files with 19 additions and 2 deletions

16
mod/phpinfo.php Normal file
View 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();
}