diff options
Diffstat (limited to 'server_privileges.php')
-rw-r--r-- | server_privileges.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server_privileges.php b/server_privileges.php index 091720e99c..c0fc4fd5d3 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -1420,12 +1420,14 @@ if ( empty( $adduser ) && empty( $checkprivs ) ) { echo ' </thead>' . "\n"; echo ' <tbody>' . "\n"; $odd_row = true; + $index_checkbox = -1; foreach ( $db_rights as $user ) { + $index_checkbox++; ksort( $user ); foreach ( $user as $host ) { echo ' <tr class="' . ( $odd_row ? 'odd' : 'even' ) . '">' . "\n" - . ' <td><input type="checkbox" name="selected_usr[]" id="checkbox_sel_users_' . $i . '" value="' . str_replace( chr(27), '', htmlentities($host['User'] . $user_host_separator . $host['Host'] ) ) . '"' . (empty($GLOBALS['checkall']) ? '' : ' checked="checked"') . ' /></td>' . "\n" - . ' <td><label for="checkbox_sel_users_' . $i . '">' . (empty($host['User']) ? '<span style="color: #FF0000">' . $GLOBALS['strAny'] . '</span>' : htmlspecialchars($host['User'])) . '</label></td>' . "\n" + . ' <td><input type="checkbox" name="selected_usr[]" id="checkbox_sel_users_' . $index_checkbox . '" value="' . str_replace( chr(27), '', htmlentities($host['User'] . $user_host_separator . $host['Host'] ) ) . '"' . (empty($GLOBALS['checkall']) ? '' : ' checked="checked"') . ' /></td>' . "\n" + . ' <td><label for="checkbox_sel_users_' . $index_checkbox . '">' . (empty($host['User']) ? '<span style="color: #FF0000">' . $GLOBALS['strAny'] . '</span>' : htmlspecialchars($host['User'])) . '</label></td>' . "\n" . ' <td>' . htmlspecialchars($host['Host']) . '</td>' . "\n"; echo ' <td>'; switch ($host['Password']) { |