diff options
author | Sebastian Mendel <cybot_tm@users.sourceforge.net> | 2005-11-22 14:58:37 +0300 |
---|---|---|
committer | Sebastian Mendel <cybot_tm@users.sourceforge.net> | 2005-11-22 14:58:37 +0300 |
commit | c4e1207e2c0443f77285739e97d24ea1f907b3b4 (patch) | |
tree | 057202568cb472ac71f47012429772ad157acdd9 /phpinfo.php | |
parent | c91e67202dc9e4ab47b85e8118262ec029518303 (diff) |
- respect only $GLOBALS['cfg']['ShowPhpInfo']
- minimum include
Diffstat (limited to 'phpinfo.php')
-rw-r--r-- | phpinfo.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpinfo.php b/phpinfo.php index 1b7d7044f7..add1f181e0 100644 --- a/phpinfo.php +++ b/phpinfo.php @@ -6,14 +6,14 @@ /** * Gets core libraries and defines some variables */ +define( 'PMA_MINIMUM_COMMON', true ); require_once('./libraries/common.lib.php'); /** * Displays PHP information */ -$is_superuser = @PMA_DBI_try_query('USE mysql', $userlink); -if ($is_superuser || $cfg['ShowPhpInfo']) { +if ( $GLOBALS['cfg']['ShowPhpInfo'] ) { phpinfo(); } ?> |