diff --git a/ChangeLog b/ChangeLog index a3d96b391..632cea972 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-11-08 Robin Johnson + * config.inc.php3,main.php3,phpinfo.php3: fixed bug #479303 + - $cfgShowPHPInfo added, false by default + 2001-11-07 Marc Delisle * tbl_select.php3, lang/some files: modify $strLimitNumRows * user_details.php3, lang/some files: modify $strRevokeGrantMessage diff --git a/config.inc.php3 b/config.inc.php3 index 974ce6c39..c78dabb4a 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -94,18 +94,18 @@ unset($cfgServers[0]); /** * Other core phpMyAdmin settings */ -$cfgOBGzip = TRUE; // use GZIP output buffering if possible +$cfgOBGzip = TRUE; // use GZIP output buffering if possible $cfgPersistentConnections = FALSE; // use persistent connections to MySQL database $cfgSkipLockedTables = FALSE; // mark used tables, make possible to show // locked tables (since MySQL 3.23.30) $cfgShowSQL = TRUE; // show SQL queries as run $cfgAllowUserDropDatabase = FALSE; // show a 'Drop database' link to normal users $cfgConfirm = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE' - $cfgShowStats = TRUE; // allow to display statistics and space usage in // the pages about database details and table // properties $cfgShowTooltip = TRUE; // display table comment as tooltip in left frame +$cfgShowPHPInfo = FALSE; // disable access to the phpinfo() call // In browse mode... $cfgShowBlob = FALSE; // display blob field contents diff --git a/main.php3 b/main.php3 index 4614b6453..8bf70c7e5 100755 --- a/main.php3 +++ b/main.php3 @@ -399,6 +399,10 @@ echo "\n"; + item @@ -406,7 +410,9 @@ echo "\n"; - + item diff --git a/phpinfo.php3 b/phpinfo.php3 index bd019b9f3..7a4be00cd 100644 --- a/phpinfo.php3 +++ b/phpinfo.php3 @@ -12,5 +12,6 @@ require('./libraries/common.lib.php3'); /** * Displays PHP information */ -phpinfo(); +if($cfgShowPHPInfo) + phpinfo(); ?>