- respect only $GLOBALS['cfg']['ShowPhpInfo']

- minimum include
This commit is contained in:
Sebastian Mendel
2005-11-22 11:58:37 +00:00
parent c91e67202d
commit c4e1207e2c
2 changed files with 5 additions and 2 deletions

View File

@@ -7,6 +7,9 @@ $Source$
2005-11-20 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* added test/theme.php: for testing themes
* phpinfo.php:
- respect only $GLOBALS['cfg']['ShowPhpInfo']
- minimum include
2005-11-21 Michal Čihař <michal@cihar.com>
* libraries/import/sql.php: Fix query splitting in some cases (reported by

View File

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