Fix bug #3188444 (part 2) - DB-specific privileges and Ajax

This commit is contained in:
Rouslan Placella
2011-04-01 13:53:02 +01:00
committed by Michal Čihař
parent 752a31414d
commit 16ff0aed79

View File

@@ -2161,7 +2161,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
. '</form>' . "\n"; . '</form>' . "\n";
} else { } else {
// check the privileges for a particular database. // check the privileges for a particular database.
echo '<table id="tablespecificuserrights" class="data">' . "\n" echo '<form id="usersForm"><table id="tablespecificuserrights" class="data">' . "\n"
. '<caption class="tblHeaders">' . "\n" . '<caption class="tblHeaders">' . "\n"
. PMA_getIcon('b_usrcheck.png') . PMA_getIcon('b_usrcheck.png')
. ' ' . sprintf(__('Users having access to &quot;%s&quot;'), '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($checkprivs) . '">' . htmlspecialchars($checkprivs) . '</a>') . "\n" . ' ' . sprintf(__('Users having access to &quot;%s&quot;'), '<a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . PMA_generate_common_url($checkprivs) . '">' . htmlspecialchars($checkprivs) . '</a>') . "\n"
@@ -2309,7 +2309,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
. ' </tr>' . "\n"; . ' </tr>' . "\n";
} }
echo '</tbody>' . "\n" echo '</tbody>' . "\n"
. '</table>' . "\n"; . '</table></form>' . "\n";
// Offer to create a new user for the current database // Offer to create a new user for the current database
echo '<fieldset id="fieldset_add_user">' . "\n" echo '<fieldset id="fieldset_add_user">' . "\n"