mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Editor: Support permanent login in other drivers
This commit is contained in:
@@ -545,13 +545,15 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
|||||||
<?php
|
<?php
|
||||||
if ($missing == "auth") {
|
if ($missing == "auth") {
|
||||||
$first = true;
|
$first = true;
|
||||||
foreach ((array) $_SESSION["pwds"]["server"][""] as $username => $password) {
|
foreach ((array) $_SESSION["pwds"] as $vendor => $servers) {
|
||||||
if ($password !== null) {
|
foreach ($servers[""] as $username => $password) {
|
||||||
if ($first) {
|
if ($password !== null) {
|
||||||
echo "<p id='logins' onmouseover='menuOver(this, event);' onmouseout='menuOut(this);'>\n";
|
if ($first) {
|
||||||
$first = false;
|
echo "<p id='logins' onmouseover='menuOver(this, event);' onmouseout='menuOut(this);'>\n";
|
||||||
|
$first = false;
|
||||||
|
}
|
||||||
|
echo "<a href='" . h(auth_url($vendor, "", $username)) . "'>" . ($username != "" ? h($username) : "<i>" . lang('empty') . "</i>") . "</a><br>\n";
|
||||||
}
|
}
|
||||||
echo "<a href='" . h(auth_url("server", "", $username)) . "'>" . ($username != "" ? h($username) : "<i>" . lang('empty') . "</i>") . "</a><br>\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user