From: Jakub Vrana Date: Mon, 20 Feb 2017 15:52:10 +0000 (+0100) Subject: Move 'Create user' above the list of users X-Git-Tag: v4.3.0~24 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=a7cbf66347b121fc93b21e5fa5d7b3b9b95f738a;p=adminer.git Move 'Create user' above the list of users --- diff --git a/adminer/privileges.inc.php b/adminer/privileges.inc.php index 5d184ceb..d071461f 100644 --- a/adminer/privileges.inc.php +++ b/adminer/privileges.inc.php @@ -1,6 +1,8 @@ ' . lang('Create user') . ""; + $result = $connection->query("SELECT User, Host FROM mysql." . (DB == "" ? "user" : "db WHERE " . q(DB) . " LIKE Db") . " ORDER BY Host, User"); $grant = $result; if (!$result) { @@ -25,5 +27,3 @@ if (!$grant || DB != "") { echo "\n"; echo "\n"; - -echo '