Update common.php
parent
e33f3ee059
commit
030d26e074
|
@ -280,14 +280,14 @@ function gethiddenpass($path,$passfile)
|
||||||
$passwordf=explode("\n",$arr['body']);
|
$passwordf=explode("\n",$arr['body']);
|
||||||
$password=$passwordf[0];
|
$password=$passwordf[0];
|
||||||
$password=md5($password);
|
$password=md5($password);
|
||||||
savecache($path . '/password', $password);
|
savecache('path_' . $path . '/?password', $password);
|
||||||
return $password;
|
return $password;
|
||||||
} else {
|
} else {
|
||||||
//return md5('DefaultP@sswordWhenNetworkError');
|
//return md5('DefaultP@sswordWhenNetworkError');
|
||||||
return md5( md5(time()).rand(1000,9999) );
|
return md5( md5(time()).rand(1000,9999) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
savecache($path . '/password', 'null');
|
savecache('path_' . $path . '/?password', 'null');
|
||||||
if ($path !== '' ) {
|
if ($path !== '' ) {
|
||||||
$path = substr($path,0,strrpos($path,'/'));
|
$path = substr($path,0,strrpos($path,'/'));
|
||||||
return gethiddenpass($path,$passfile);
|
return gethiddenpass($path,$passfile);
|
||||||
|
|
Loading…
Reference in New Issue