mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Shortcut for database privileges
This commit is contained in:
@@ -721,6 +721,7 @@ DROP PROCEDURE adminer_alter;
|
||||
echo '<p>' . ($_GET["ns"] == "" ? '<a href="' . h(ME) . 'database=">' . lang('Alter database') . "</a>\n" : "");
|
||||
echo (support("scheme") ? "<a href='" . h(ME) . "scheme='>" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "</a>\n" : "");
|
||||
echo '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n";
|
||||
echo (support("privileges") ? "<a href='" . h(ME) . "privileges='>" . lang('Privileges') . "</a>\n" : "");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -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>
|
||||
|
@@ -111,7 +111,7 @@ if ($_POST) {
|
||||
if ($old_pass != "") {
|
||||
$row["hashed"] = true;
|
||||
}
|
||||
$grants[""] = true;
|
||||
$grants[$_GET["db"] != "" ? idf_escape($_GET["db"]) . ".*" : ""] = true;
|
||||
}
|
||||
|
||||
?>
|
||||
|
@@ -1,6 +1,7 @@
|
||||
Adminer 3.3.0-dev:
|
||||
Use Esc to disable in-place edit
|
||||
Highlight SQL code in textarea
|
||||
Shortcut for database privileges
|
||||
Append new index with auto index selection (bug #3282127)
|
||||
Bit type default value
|
||||
Display foreign key name in tooltip
|
||||
|
Reference in New Issue
Block a user