try fix: password is ''
parent
fe876dd87c
commit
96ce1a91d3
34
common.php
34
common.php
|
@ -723,9 +723,13 @@ function gethiddenpass($path,$passfile)
|
||||||
if ($arr['stat']==200) {
|
if ($arr['stat']==200) {
|
||||||
$passwordf=explode("\n",$arr['body']);
|
$passwordf=explode("\n",$arr['body']);
|
||||||
$password=$passwordf[0];
|
$password=$passwordf[0];
|
||||||
if ($password!='') $password=md5($password);
|
if ($password==='') {
|
||||||
savecache('path_' . $path1 . '/?password', $password, $_SERVER['disktag']);
|
return '';
|
||||||
return $password;
|
} else {
|
||||||
|
$password=md5($password);
|
||||||
|
savecache('path_' . $path1 . '/?password', $password, $_SERVER['disktag']);
|
||||||
|
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) );
|
||||||
|
@ -1669,6 +1673,30 @@ function render_list($path = '', $files = [])
|
||||||
$tmp = splitfirst($tmp[1], '<!--IsNotHiddenEnd-->');
|
$tmp = splitfirst($tmp[1], '<!--IsNotHiddenEnd-->');
|
||||||
$html .= $tmp[1];
|
$html .= $tmp[1];
|
||||||
}
|
}
|
||||||
|
while (strpos($html, '<!--HeadomfStart-->')) {
|
||||||
|
$tmp = splitfirst($html, '<!--HeadomfStart-->');
|
||||||
|
$html = $tmp[0];
|
||||||
|
$tmp = splitfirst($tmp[1], '<!--HeadomfEnd-->');
|
||||||
|
$html .= $tmp[1];
|
||||||
|
}
|
||||||
|
while (strpos($html, '<!--HeadmdStart-->')) {
|
||||||
|
$tmp = splitfirst($html, '<!--HeadmdStart-->');
|
||||||
|
$html = $tmp[0];
|
||||||
|
$tmp = splitfirst($tmp[1], '<!--HeadmdEnd-->');
|
||||||
|
$html .= $tmp[1];
|
||||||
|
}
|
||||||
|
while (strpos($html, '<!--ReadmemdStart-->')) {
|
||||||
|
$tmp = splitfirst($html, '<!--ReadmemdStart-->');
|
||||||
|
$html = $tmp[0];
|
||||||
|
$tmp = splitfirst($tmp[1], '<!--ReadmemdEnd-->');
|
||||||
|
$html .= $tmp[1];
|
||||||
|
}
|
||||||
|
while (strpos($html, '<!--FootomfStart-->')) {
|
||||||
|
$tmp = splitfirst($html, '<!--FootomfStart-->');
|
||||||
|
$html = $tmp[0];
|
||||||
|
$tmp = splitfirst($tmp[1], '<!--FootomfEnd-->');
|
||||||
|
$html .= $tmp[1];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
while (strpos($html, '<!--EncryptedStart-->')) {
|
while (strpos($html, '<!--EncryptedStart-->')) {
|
||||||
$tmp = splitfirst($html, '<!--EncryptedStart-->');
|
$tmp = splitfirst($html, '<!--EncryptedStart-->');
|
||||||
|
|
Loading…
Reference in New Issue