Update common.php

pull/31/head
qkqpttgf 2020-03-01 13:02:20 +08:00 committed by GitHub
parent e33f3ee059
commit 030d26e074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -280,14 +280,14 @@ function gethiddenpass($path,$passfile)
$passwordf=explode("\n",$arr['body']);
$password=$passwordf[0];
$password=md5($password);
savecache($path . '/password', $password);
savecache('path_' . $path . '/?password', $password);
return $password;
} else {
//return md5('DefaultP@sswordWhenNetworkError');
return md5( md5(time()).rand(1000,9999) );
}
} else {
savecache($path . '/password', 'null');
savecache('path_' . $path . '/?password', 'null');
if ($path !== '' ) {
$path = substr($path,0,strrpos($path,'/'));
return gethiddenpass($path,$passfile);