* config.inc.php3, main.php3, docs: added cfg['SuggestDBName'] flag

This commit is contained in:
Olivier Müller
2002-06-23 00:22:54 +00:00
parent 598af56d7b
commit b244b04316
4 changed files with 13 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ $Source$
* db_details_links.php3, index.php3, left.php3, tbl_properties_links.php3:
moved 'Structure' to the front and use it as default value.
TODO: make that customizable.
* config.inc.php3, main.php3, docs: added cfg['SuggestDBName'] flag
2002-06-22 Robin Johnson <robbat2@users.sourceforge.net>
* sql.php3:

View File

@@ -964,6 +964,13 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
<br /><br />
</dd>
<dt><b>$cfg['SuggestDBName']</b> boolean</dt>
<dd>
Defines whether to suggest a database name on the "Create Database"
form or to keep the textfield empty.
<br /><br />
</dd>
<dt><b>$cfg['LoginCookieRecall'] </b>boolean</dt>
<dd>
Define whether the previous login should be recalled or not in cookie

View File

@@ -157,6 +157,7 @@ $cfg['ShowMysqlInfo'] = FALSE; // whether to display the "MySQL runtime
$cfg['ShowMysqlVars'] = FALSE; // information", "MySQL system variables", "PHP
$cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
$cfg['ShowChgPassword'] = FALSE; // simple users or not
$cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
// In browse mode...
$cfg['ShowBlob'] = FALSE; // display blob field contents

View File

@@ -247,6 +247,10 @@ if ($server > 0) {
$db_to_create = '';
} // end else
if (!$cfg['SuggestDBName']) {
$db_to_create = '';
}
$common_url_query = 'lang=' . $lang . '&amp;server=' . $server . '&amp;convcharset=' . $convcharset;
if ($is_superuser) {