mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Document password functions
This commit is contained in:
@@ -108,24 +108,6 @@ function auth_error($exception = null) {
|
||||
page_footer("auth");
|
||||
}
|
||||
|
||||
function set_password($vendor, $server, $username, $password) {
|
||||
$_SESSION["pwds"][$vendor][$server][$username] = ($_COOKIE["adminer_key"] && is_string($password)
|
||||
? array(encrypt_string($password, $_COOKIE["adminer_key"]))
|
||||
: $password
|
||||
);
|
||||
}
|
||||
|
||||
function get_password() {
|
||||
$return = get_session("pwds");
|
||||
if (is_array($return)) {
|
||||
$return = ($_COOKIE["adminer_key"]
|
||||
? decrypt_string($return[0], $_COOKIE["adminer_key"])
|
||||
: false
|
||||
);
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
if (isset($_GET["username"])) {
|
||||
if (!class_exists("Min_DB")) {
|
||||
unset($_SESSION["pwds"][DRIVER]);
|
||||
|
Reference in New Issue
Block a user