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$
$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>
* db_printview.php: fixed bug 'no tables found', refactored
* 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>
<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>
<dd>Defines whether to display the &quot;PHP information&quot; and
&quot;Change password &quot; links or not for simple users at the
starting main (right) frame. This setting does not check MySQL
commands entered directly.<br /><br />
&quot;Change password &quot; links and form for creating database or
not for simple users at the starting main (right) frame. This setting
does not check MySQL commands entered directly.<br /><br />
Please note that to block the usage of phpinfo() in scripts, you
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
// the pages about database details and table
// properties
$cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
$cfg['ShowChgPassword'] = FALSE; // simple users or not
$cfg['ShowPhpInfo'] = FALSE; // show php info link
$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)
// In browse mode...

View File

@@ -145,9 +145,11 @@ if ( $server > 0 ) {
. ' </li>' . "\n";
}
echo '<li id="li_create_database">';
require('./libraries/display_create_database.lib.php');
echo '</li>' . "\n";
if ($cfg['ShowCreateDb']) {
echo '<li id="li_create_database">';
require('./libraries/display_create_database.lib.php');
echo '</li>' . "\n";
}
PMA_printListItem( $strMySQLShowStatus, 'li_mysql_status',
'./server_status.php?' . $common_url_query );
@@ -373,8 +375,8 @@ if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION < 32332) {
* @param string $name displayed text
* @param string $id id, used for css styles
* @param string $url make item as link with $url as target
* @param string $mysql_help_page display a link to MySQL's manual
* @param string $target special target for $url
* @param string $mysql_help_page display a link to MySQL's manual
* @param string $target special target for $url
*/
function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null, $target = null)
{