1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 11:34:10 +02:00

List authentications

This commit is contained in:
Jakub Vrana
2010-05-06 14:21:22 +02:00
parent 8878799c90
commit 605b09301b
4 changed files with 49 additions and 11 deletions

View File

@@ -447,7 +447,18 @@ ORDER BY ORDINAL_POSITION");
<a href="http://www.adminer.org/editor/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
</h1>
<?php
if ($missing != "auth") {
if ($missing == "auth") {
$first = true;
foreach ((array) $_SESSION["passwords"]["server"][""] as $username => $password) {
if (isset($password)) {
if ($first) {
echo "<p>\n";
$first = false;
}
echo "<a href='" . h(auth_url("server", "", $username)) . "'>" . h($username) . "</a><br>\n";
}
}
} else {
?>
<form action="" method="post">
<p class="logout">