1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 03:53:59 +02:00

Notify user about expired master password for permanent login

This commit is contained in:
Jakub Vrana
2013-06-11 11:02:17 +02:00
parent 64297aea60
commit f29a7cb140
8 changed files with 20 additions and 9 deletions

View File

@@ -79,6 +79,9 @@ function decrypt_string($str, $key) {
if ($str == "") {
return "";
}
if (!$key) {
return false;
}
$key = array_values(unpack("V*", pack("H*", md5($key))));
$v = str2long($str, false);
$n = count($v) - 1;