]> git.joonet.de Git - adminer.git/commitdiff
Editor: Support permanent login in other drivers
authorJakub Vrana <jakub@vrana.cz>
Sun, 11 Aug 2013 01:57:12 +0000 (18:57 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sun, 11 Aug 2013 01:57:12 +0000 (18:57 -0700)
editor/include/adminer.inc.php

index 0c7743c93e4fc569b44cdc40426f816499af51fd..6f93a4876cf6d0cc4fc9ec0be1509c033e7b2baa 100644 (file)
@@ -545,13 +545,15 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
 <?php
                if ($missing == "auth") {
                        $first = true;
-                       foreach ((array) $_SESSION["pwds"]["server"][""] as $username => $password) {
-                               if ($password !== null) {
-                                       if ($first) {
-                                               echo "<p id='logins' onmouseover='menuOver(this, event);' onmouseout='menuOut(this);'>\n";
-                                               $first = false;
+                       foreach ((array) $_SESSION["pwds"] as $vendor => $servers) {
+                               foreach ($servers[""] as $username => $password) {
+                                       if ($password !== null) {
+                                               if ($first) {
+                                                       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 {