1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Shortcut for database privileges

This commit is contained in:
Jakub Vrana
2011-06-03 13:50:20 +02:00
parent 98e410f42d
commit 16a72b4521
4 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<?php
page_header(lang('Privileges'));
$result = $connection->query("SELECT User, Host FROM mysql.user ORDER BY Host, User");
$result = $connection->query("SELECT User, Host FROM mysql." . ($_GET["db"] == "" ? "user" : "db WHERE " . q($_GET["db"]) . " LIKE Db") . " ORDER BY Host, User");
if (!$result) {
?>
<form action=""><p>