1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Store several permanent logins

This commit is contained in:
Jakub Vrana
2010-05-07 16:31:14 +02:00
parent e6726941dc
commit dea324f2c7
2 changed files with 26 additions and 14 deletions

View File

@@ -295,7 +295,7 @@ function auth_url($driver, $server, $username) {
global $drivers;
preg_match('~([^?]*)\\??(.*)~', remove_from_uri(implode("|", array_keys($drivers)) . "|username|" . session_name()), $match);
return "$match[1]?"
. (SID ? SID . "&" : "")
. (SID && !$_COOKIE ? SID . "&" : "")
. ($driver != "server" || $server != "" ? urlencode($driver) . "=" . urlencode($server) . "&" : "")
. "username=" . urlencode($username)
. ($match[2] ? "&$match[2]" : "")