* 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:
Loïc Chapeaux
2001-11-09 07:54:05 +00:00
parent b02176e381
commit 476ef78631
6 changed files with 72 additions and 25 deletions

View File

@@ -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();
}
?>