diff --git a/ChangeLog b/ChangeLog index a116aab0e..b16575c9b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ $Source$ 2005-11-20 Sebastian Mendel * added test/theme.php: for testing themes + * phpinfo.php: + - respect only $GLOBALS['cfg']['ShowPhpInfo'] + - minimum include 2005-11-21 Michal Čihař * libraries/import/sql.php: Fix query splitting in some cases (reported by diff --git a/phpinfo.php b/phpinfo.php index 1b7d7044f..add1f181e 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(); } ?>