* extended last fix from Robin to the "MySQL runtime information" and "MySQL system variables" links;
* but allowed these directives to be bypassed for super-users
This commit is contained in:
@@ -12,6 +12,8 @@ require('./libraries/common.lib.php3');
|
||||
/**
|
||||
* Displays PHP information
|
||||
*/
|
||||
if($cfgShowPHPInfo)
|
||||
phpinfo();
|
||||
$is_superuser = @mysql_query('USE mysql', $userlink);
|
||||
if ($is_superuser || $cfgShowPhpInfo) {
|
||||
phpinfo();
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user