diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 1e6b00a9..2456ea35 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -584,7 +584,8 @@ focus(qs('#username')); $query = preg_replace('~[\x80-\xFF]+$~', '', substr($query, 0, 1e6)) . "\n..."; // [\x80-\xFF] - valid UTF-8, \n - can end by one-line comment } $history[$_GET["db"]][] = array($query, time(), $time); // not DB - $_GET["db"] is changed in database.inc.php //! respect $_GET["ns"] - return " " . @date("H:i:s") . " " . lang('SQL command') . "" // @ - time zone may be not set + return " " . @date("H:i:s") . "" // @ - time zone may be not set + . " " . lang('SQL command') . "" . "
" . shorten_utf8($query, 1000) . '
'
. ($time ? " ($time)" : '')
. (support("sql") ? '' . lang('Edit') . '' : '') @@ -860,7 +861,7 @@ focus(qs('#username')); foreach ($usernames as $username => $password) { if ($password !== null) { if ($first) { - echo "
\n"; + echo "
\n"; $first = false; } $dbs = $_SESSION["db"][$vendor][$server][$username]; @@ -932,15 +933,15 @@ bodyLoad('server_info,
mixin(qsl('select'), {onmousedown: dbMouseDown, onchange: dbChange});";
echo "DB: " . ($databases
- ? ""
+ ? "$db_events"
: ''
);
echo "\n";
if ($missing != "db" && DB != "" && $connection->select_db(DB)) {
if (support("scheme")) {
- echo "
" . lang('Schema') . ": ";
+ echo "
" . lang('Schema') . ": $db_events";
if ($_GET["ns"] != "") {
set_schema($_GET["ns"]);
}