Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/phpmyadmin/phpmyadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Mar 8, 2012
2 parents 8086b03 + c8aea36 commit 3beef89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server_privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -1588,9 +1588,9 @@ function PMA_getGrants($user, $host) {
// export user definition
if (isset($_REQUEST['export'])) {
$response = '<textarea cols="' . $GLOBALS['cfg']['TextareaCols'] . '" rows="' . $GLOBALS['cfg']['TextareaRows'] . '">';
if (! strcmp($username, __('All users'))) {
if ($username == '%') {
// export privileges for all users
$title = __('Privileges for ') . htmlspecialchars($username) . ' @ ' . htmlspecialchars($hostname);
$title = __('Privileges for all users');
foreach ($_SESSION['user_host_pairs'] as $pair) {
$response .= PMA_getGrants($pair['user'], $pair['host']);
$response .= "\n";
Expand Down Expand Up @@ -1804,7 +1804,7 @@ function PMA_getGrants($user, $host) {
echo '</td>';
echo '</tr>';
$odd_row = ! $odd_row;

$_SESSION['user_host_pairs'][$pair_count]['user'] = $host['User'];
$_SESSION['user_host_pairs'][$pair_count]['host'] = $host['Host'];
$pair_count ++;
Expand All @@ -1829,7 +1829,7 @@ function PMA_getGrants($user, $host) {
. '</div>'
. '<div class="clear_both" style="clear:both"></div>'
. '<div style="float:left; padding-left:10px;">';
printf($link_export_all, urlencode(__('All users')), urlencode(__('All hosts')), (isset($initial) ? $initial : ''));
printf($link_export_all, urlencode('%'), urlencode('%'), (isset($initial) ? $initial : ''));
echo '</div>'
. '</div>'
. '<div class="clear_both" style="clear:both"></div>'
Expand Down

0 comments on commit 3beef89

Please sign in to comment.