mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Save bytes
This commit is contained in:
@@ -117,10 +117,10 @@ function set_password($vendor, $server, $username, $password) {
|
|||||||
function get_password() {
|
function get_password() {
|
||||||
$return = get_session("pwds");
|
$return = get_session("pwds");
|
||||||
if (is_array($return)) {
|
if (is_array($return)) {
|
||||||
if (!$_COOKIE["adminer_key"]) {
|
$return = ($_COOKIE["adminer_key"]
|
||||||
return false;
|
? decrypt_string($return[0], $_COOKIE["adminer_key"])
|
||||||
}
|
: false
|
||||||
$return = decrypt_string($return[0], $_COOKIE["adminer_key"]);
|
);
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user