parent
c8adcbbd7a
commit
f2d53d45af
24
common.php
24
common.php
|
@ -2225,7 +2225,18 @@ function render_list($path = '', $files = [])
|
||||||
while (strpos($html, '<!--GuestEnd-->')) $html = str_replace('<!--GuestEnd-->', '', $html);
|
while (strpos($html, '<!--GuestEnd-->')) $html = str_replace('<!--GuestEnd-->', '', $html);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_SERVER['ishidden']==4) {
|
if ($_SERVER['ishidden']<4 || ($files['type']=='file'&&getConfig('downloadencrypt', $_SERVER['disktag']))) {
|
||||||
|
while (strpos($html, '<!--EncryptedStart-->')) {
|
||||||
|
$tmp = splitfirst($html, '<!--EncryptedStart-->');
|
||||||
|
$html = $tmp[0];
|
||||||
|
$tmp = splitfirst($tmp[1], '<!--EncryptedEnd-->');
|
||||||
|
$html .= $tmp[1];
|
||||||
|
}
|
||||||
|
while (strpos($html, '<!--IsNotHiddenStart-->')) {
|
||||||
|
$html = str_replace('<!--IsNotHiddenStart-->', '', $html);
|
||||||
|
$html = str_replace('<!--IsNotHiddenEnd-->', '', $html);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
// 加密状态
|
// 加密状态
|
||||||
if (getConfig('useBasicAuth')) {
|
if (getConfig('useBasicAuth')) {
|
||||||
// use Basic Auth
|
// use Basic Auth
|
||||||
|
@ -2300,17 +2311,6 @@ function render_list($path = '', $files = [])
|
||||||
$tmp = splitfirst($tmp[1], '<!--FootomfEnd-->');
|
$tmp = splitfirst($tmp[1], '<!--FootomfEnd-->');
|
||||||
$html .= $tmp[1];
|
$html .= $tmp[1];
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
while (strpos($html, '<!--EncryptedStart-->')) {
|
|
||||||
$tmp = splitfirst($html, '<!--EncryptedStart-->');
|
|
||||||
$html = $tmp[0];
|
|
||||||
$tmp = splitfirst($tmp[1], '<!--EncryptedEnd-->');
|
|
||||||
$html .= $tmp[1];
|
|
||||||
}
|
|
||||||
while (strpos($html, '<!--IsNotHiddenStart-->')) {
|
|
||||||
$html = str_replace('<!--IsNotHiddenStart-->', '', $html);
|
|
||||||
$html = str_replace('<!--IsNotHiddenEnd-->', '', $html);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
while (strpos($html, '<!--constStr@Download-->')) $html = str_replace('<!--constStr@Download-->', getconstStr('Download'), $html);
|
while (strpos($html, '<!--constStr@Download-->')) $html = str_replace('<!--constStr@Download-->', getconstStr('Download'), $html);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue