always display the "Add a new user" link on the 'user overview' page

This commit is contained in:
Olivier Müller
2005-05-08 00:14:55 +00:00
parent 8904a3d360
commit ba331a45ba
2 changed files with 21 additions and 1 deletions

View File

@@ -9,6 +9,9 @@ $Source$
* scripts/upgrade.pl: new script to let unix admins upgrade phpMyadmin
with one command and 5 seconds. To be improved, but is working fine
here (tm). Based on: http://www.phpmyadmin.net/latest.txt
* server_privileges.php: always display the "Add a new user" link
on the User overview page (no more need to click on [show all] or
an initial before)
2005-05-05 Marc Delisle <lem9@users.sourceforge.net>
* libraries/mysql_charsets.lib.php: bug #1186983, missing character

View File

@@ -1136,8 +1136,25 @@ if (empty($adduser) && empty($checkprivs)) {
. '<div class="tblWarn">' . "\n"
. ' ' . sprintf($strFlushPrivilegesNote, '<a href="server_privileges.php?' . $url_query . '&amp;flush_privileges=1">', '</a>') . "\n"
. '</div>' . "\n";
} else {
unset ($row);
echo ' <br /><table border="0" cellpading="3" cellspacing="0">' . "\n"
. ' <tr bgcolor="' . $cfg['BgcolorOne'] . '"><td '
. ($cfg['PropertiesIconic'] ? 'colspan="3"><b><a href="server_privileges.php?' . $url_query . '&amp;adduser=1"><img src="' . $pmaThemeImage . 'b_usradd.png" width="16" height="16" hspace="2" border="0" align="middle" />' : 'width="20" nowrap="nowrap" align="center" valign="top"><b>&#8226;</b></td><td><b><a href="server_privileges.php?' . $url_query . '&amp;adduser=1">' ). "\n"
. ' ' . $strAddUser . '</a></b>' . "\n"
. ' ' . "\n"
. ' </td></tr>' . "\n" . ' <tr><td colspan="2"></td></tr>'
. ' </table>' . "\n"
. '</form>' . "\n"
. '<div class="tblWarn">' . "\n"
. ' ' . sprintf($strFlushPrivilegesNote, '<a href="server_privileges.php?' . $url_query . '&amp;flush_privileges=1">', '</a>') . "\n"
. '</div>' . "\n";
} // end if (display overview)
}
} else {
// A user was selected -> display the user's properties