Possibility to hide creating of database from main (RFE #1370100).
This commit is contained in:
@@ -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
|
||||||
|
@@ -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 "PHP information" and
|
<dd>Defines whether to display the "PHP information" and
|
||||||
"Change password " links or not for simple users at the
|
"Change password " 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>:
|
||||||
|
@@ -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...
|
||||||
|
12
main.php
12
main.php
@@ -145,9 +145,11 @@ if ( $server > 0 ) {
|
|||||||
. ' </li>' . "\n";
|
. ' </li>' . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<li id="li_create_database">';
|
if ($cfg['ShowCreateDb']) {
|
||||||
require('./libraries/display_create_database.lib.php');
|
echo '<li id="li_create_database">';
|
||||||
echo '</li>' . "\n";
|
require('./libraries/display_create_database.lib.php');
|
||||||
|
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 );
|
||||||
@@ -373,8 +375,8 @@ if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION < 32332) {
|
|||||||
* @param string $name displayed text
|
* @param string $name displayed text
|
||||||
* @param string $id id, used for css styles
|
* @param string $id id, used for css styles
|
||||||
* @param string $url make item as link with $url as target
|
* @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 $mysql_help_page display a link to MySQL's manual
|
||||||
* @param string $target special target for $url
|
* @param string $target special target for $url
|
||||||
*/
|
*/
|
||||||
function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null, $target = null)
|
function PMA_printListItem($name, $id = null, $url = null, $mysql_help_page = null, $target = null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user