Possibility to hide creating of database from main (RFE #1370100).

This commit is contained in:
Michal Čihař
2006-04-27 22:02:57 +00:00
parent d4fc226b9a
commit a9a04c3b64
4 changed files with 19 additions and 11 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$ $Id$
$Source$ $Source$
2006-04-28 Michal Čihař <michal@cihar.com>
* Documentation.html, main.php, libraries/config.default.php: Possibility
to hide creating of database from main (RFE #1370100).
2006-04-27 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2006-04-27 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* db_printview.php: fixed bug 'no tables found', refactored * db_printview.php: fixed bug 'no tables found', refactored
* tbl_change.php, tbl_indexes.php: removed table formating, done in css * tbl_change.php, tbl_indexes.php: removed table formating, done in css

View File

@@ -1146,12 +1146,13 @@ ALTER TABLE `pma_column_comments`
date, MySQL doesn't return such information for Berkeley DB tables.</dd> date, MySQL doesn't return such information for Berkeley DB tables.</dd>
<dt><span id="cfg_ShowPhpInfo">$cfg[ShowPhpInfo] </span>boolean<br /> <dt><span id="cfg_ShowPhpInfo">$cfg[ShowPhpInfo] </span>boolean<br />
<span id="cfg_ShowChgPassword">$cfg[ShowChgPassword] </span>boolean <span id="cfg_ShowChgPassword">$cfg[ShowChgPassword] </span>boolean<br />
<span id="cfg_ShowChgPassword">$cfg[ShowCreateDb] </span>boolean
</dt> </dt>
<dd>Defines whether to display the &quot;PHP information&quot; and <dd>Defines whether to display the &quot;PHP information&quot; and
&quot;Change password &quot; links or not for simple users at the &quot;Change password &quot; links and form for creating database or
starting main (right) frame. This setting does not check MySQL not for simple users at the starting main (right) frame. This setting
commands entered directly.<br /><br /> does not check MySQL commands entered directly.<br /><br />
Please note that to block the usage of phpinfo() in scripts, you Please note that to block the usage of phpinfo() in scripts, you
have to put this in your <i>php.ini</i>: have to put this in your <i>php.ini</i>:

View File

@@ -170,8 +170,9 @@ $cfg['DisplayServersList'] = FALSE; // server choice as links
$cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
// the pages about database details and table // the pages about database details and table
// properties // properties
$cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for $cfg['ShowPhpInfo'] = FALSE; // show php info link
$cfg['ShowChgPassword'] = FALSE; // simple users or not $cfg['ShowChgPassword'] = FALSE; // show change password link
$cfg['ShowCreateDb'] = TRUE; // show create database form
$cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty) $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
// In browse mode... // In browse mode...

View File

@@ -145,9 +145,11 @@ if ( $server > 0 ) {
. ' </li>' . "\n"; . ' </li>' . "\n";
} }
if ($cfg['ShowCreateDb']) {
echo '<li id="li_create_database">'; echo '<li id="li_create_database">';
require('./libraries/display_create_database.lib.php'); require('./libraries/display_create_database.lib.php');
echo '</li>' . "\n"; echo '</li>' . "\n";
}
PMA_printListItem( $strMySQLShowStatus, 'li_mysql_status', PMA_printListItem( $strMySQLShowStatus, 'li_mysql_status',
'./server_status.php?' . $common_url_query ); './server_status.php?' . $common_url_query );