config.inc.php3,main.php3,phpinfo.php3: fixed bug #479303

This commit is contained in:
Robin Johnson
2001-11-09 03:15:33 +00:00
parent dc10c0f1c5
commit b02176e381
4 changed files with 15 additions and 4 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-11-08 Robin Johnson <robbat2@users.sourceforge.net>
* config.inc.php3,main.php3,phpinfo.php3: fixed bug #479303
- $cfgShowPHPInfo added, false by default
2001-11-07 Marc Delisle <lem9@users.sourceforge.net>
* tbl_select.php3, lang/some files: modify $strLimitNumRows
* user_details.php3, lang/some files: modify $strRevokeGrantMessage

View File

@@ -101,11 +101,11 @@ $cfgSkipLockedTables = FALSE; // mark used tables, make possible to show
$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

View File

@@ -399,6 +399,10 @@ echo "\n";
</td>
</tr>
<?php
if($cfgShowPHPInfo)
{ ?>
<!-- PHP Information -->
<tr>
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>
@@ -406,7 +410,9 @@ echo "\n";
<a href="phpinfo.php3" target="_new"><?php echo $strShowPHPInfo; ?></a>
</td>
</tr>
<?php
}
?>
<!-- phpMyAdmin related urls -->
<tr>
<td valign="baseline"><img src="images/item.gif" width="7" height="7" alt="item" /></td>

View File

@@ -12,5 +12,6 @@ require('./libraries/common.lib.php3');
/**
* Displays PHP information
*/
if($cfgShowPHPInfo)
phpinfo();
?>