1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@322 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2007-08-09 16:46:37 +00:00
parent 607f6fa0bc
commit d8971f46f9

View File

@@ -3,6 +3,7 @@ page_header(lang('Privileges'));
echo '<p><a href="' . htmlspecialchars($SELF) . 'user=">' . lang('Create user') . "</a></p>\n";
$result = $mysql->query("SELECT User, Host FROM mysql.user ORDER BY Host, User");
if (!$result) {
//! Grant and revoke privileges to any users
$result = $mysql->query("SELECT SUBSTRING_INDEX(CURRENT_USER, '@', 1) AS User, SUBSTRING_INDEX(CURRENT_USER, '@', -1) AS Host");
}
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";