diff --git a/ChangeLog b/ChangeLog index 4ce74f87b..eee8e3ad2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,8 @@ $Source$ also for numeric fields. * tbl_replace.php: UNIX_TIMESTAMP can take optional parameter (bug #1039193). + * server_privileges.php: Make non-js checkall work also for adding new + user (bug #1028055). 2004-10-17 Marc Delisle * lang/turkish update, thanks to boralioglu. diff --git a/server_privileges.php b/server_privileges.php index ec59afa66..43b31d7c1 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -139,7 +139,7 @@ function PMA_extractPrivInfo($row = '', $enableHTML = FALSE) */ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent = 0) { - global $cfg, $userlink, $url_query; + global $cfg, $userlink, $url_query, $checkall; if ($db == '*') { $table = '*'; @@ -239,7 +239,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent = while (in_array(substr($current_grant, 0, (strlen($current_grant) - 5)), array('Select', 'Insert', 'Update', 'References'))) { list($current_grant, $current_grant_value) = each($row); } - echo $spaces . ' ' . "\n" + echo $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n"; @@ -255,7 +255,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent = } echo $spaces . '
' . "\n" . $spaces . ' ' . $GLOBALS['strOr'] . '
' . "\n" - . $spaces . ' ' . "\n" + . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . '
' . "\n" . $spaces . ' ' . $GLOBALS['strOr'] . '
' . "\n" - . $spaces . ' ' . "\n" + . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . '
' . "\n" . $spaces . ' ' . $GLOBALS['strOr'] . '
' . "\n" - . $spaces . ' ' . "\n" + . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . '
' . "\n" . $spaces . ' ' . $GLOBALS['strOr'] . '
' . "\n" - . $spaces . ' ' . "\n" + . $spaces . ' ' . "\n" . $spaces . ' ' . "\n"; unset($rowspan); list($current_grant, $current_grant_value) = each($row); while (in_array(substr($current_grant, 0, (strlen($current_grant) - 5)), array('Select', 'Insert', 'Update', 'References'))) { list($current_grant, $current_grant_value) = each($row); } - echo $spaces . ' ' . "\n" + echo $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n"; while (list($current_grant, $current_grant_value) = each($row)) { @@ -309,7 +309,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent = continue; } echo $spaces . ' ' . "\n" - . $spaces . ' ' . "\n" + . $spaces . ' ' . "\n" . $spaces . ' ' . "\n" . $spaces . ' ' . "\n"; } @@ -385,7 +385,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent = echo $spaces . ' ' . "\n"; for ($j = 0; $j < 3; $j++) { if (isset($privTable[$j][$i])) { - echo $spaces . ' ' . "\n" + echo $spaces . ' ' . "\n" . $spaces . ' ' . "\n"; } else if ($db == '*' && !isset($privTable[0][$i]) && !isset($privTable[1][$i]) && isset($row['max_questions']) && isset($row['max_updates']) && isset($row['max_connections']) @@ -1288,6 +1288,7 @@ if (empty($adduser) && empty($checkprivs)) { } } else if (!empty($adduser)) { // Add a new user + $url_query .= '&adduser=1'; echo '

' . "\n" . ($cfg['PropertiesIconic'] ? '' : '' ) . ' ' . $strAddUser . "\n"