In the "GRANTS" part, do not define a default db name if a db is aleady selected
This commit is contained in:
@@ -6,8 +6,13 @@ $Id$
|
|||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
2002-03-17 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2002-03-17 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* user_details.php3; user_password.php3: no long displays the true password
|
* user_details.php3:
|
||||||
on screen.
|
- no long displays the true password on screen;
|
||||||
|
- in the "GRANTS" part, do not define a default db name if a db is aleady
|
||||||
|
selected.
|
||||||
|
* user_password.php3:
|
||||||
|
- no long displays the true password on screen;
|
||||||
|
- fixed a warning.
|
||||||
* tbl_change.php3: patch from Thomas B<>hr <baehr at glaswald.de> - tabindex
|
* tbl_change.php3: patch from Thomas B<>hr <baehr at glaswald.de> - tabindex
|
||||||
order.
|
order.
|
||||||
* german.inc.php3: updated thanks to Alexander M. Turek.
|
* german.inc.php3: updated thanks to Alexander M. Turek.
|
||||||
|
@@ -503,10 +503,14 @@ function PMA_grantOperations($grants)
|
|||||||
// echo ' ';
|
// echo ' ';
|
||||||
// echo '<option></option>' . "\n";
|
// echo '<option></option>' . "\n";
|
||||||
// }
|
// }
|
||||||
$result = mysql_query('SHOW DATABASES');
|
$is_selected_db = FALSE;
|
||||||
|
$result = mysql_query('SHOW DATABASES');
|
||||||
if (@mysql_num_rows($result)) {
|
if (@mysql_num_rows($result)) {
|
||||||
while ($row = mysql_fetch_row($result)) {
|
while ($row = mysql_fetch_row($result)) {
|
||||||
$selected = (($row[0] == $dbgrant) ? ' selected="selected"' : '');
|
$selected = (($row[0] == $dbgrant) ? ' selected="selected"' : '');
|
||||||
|
if (!empty($selected)) {
|
||||||
|
$is_selected_db = TRUE;
|
||||||
|
}
|
||||||
echo ' ';
|
echo ' ';
|
||||||
echo '<option' . $selected . '>' . $row[0] . '</option>' . "\n";
|
echo '<option' . $selected . '>' . $row[0] . '</option>' . "\n";
|
||||||
} // end while
|
} // end while
|
||||||
@@ -602,7 +606,7 @@ function PMA_grantOperations($grants)
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan="5">
|
<td colspan="5">
|
||||||
<?php echo $GLOBALS['strDatabaseWildcard'] . "\n"; ?>
|
<?php echo $GLOBALS['strDatabaseWildcard'] . "\n"; ?>
|
||||||
<input type="text" name="newdb" value="<?php echo (!empty($pma_user)? $pma_user . '%':''); ?>" onchange="change(this)" />
|
<input type="text" name="newdb" value="<?php echo ((!$is_selected_db && !empty($pma_user)) ? $pma_user . '%' : ''); ?>" onchange="change(this)" />
|
||||||
</td>
|
</td>
|
||||||
<tr>
|
<tr>
|
||||||
</table>
|
</table>
|
||||||
|
Reference in New Issue
Block a user