CMS  Version 3.9
php_info.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::assertRole("admin");
3 
4 ob_start();
5 
6 phpinfo();
7 
8 $info = ob_get_contents();
9 ob_end_clean();
10 
11 $info = preg_replace("/.*?<body>(.*?)<\/body>/s", "$1", $info);
12 
13 echo $info;
14 ?>
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
Definition: core.inc:297
$info
Definition: php_info.inc:8