Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Mendel <cybot_tm@users.sourceforge.net>2005-11-22 14:58:37 +0300
committerSebastian Mendel <cybot_tm@users.sourceforge.net>2005-11-22 14:58:37 +0300
commitc4e1207e2c0443f77285739e97d24ea1f907b3b4 (patch)
tree057202568cb472ac71f47012429772ad157acdd9 /phpinfo.php
parentc91e67202dc9e4ab47b85e8118262ec029518303 (diff)
- respect only $GLOBALS['cfg']['ShowPhpInfo']
- minimum include
Diffstat (limited to 'phpinfo.php')
-rw-r--r--phpinfo.php4
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();
}
?>