|
|
|
@ -11,6 +11,9 @@ if ($viewData['showType'] == 'image') {
@@ -11,6 +11,9 @@ if ($viewData['showType'] == 'image') {
|
|
|
|
|
$supportedExts = $audioExts; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//需密码授权的目录显示lock图标 |
|
|
|
|
$authConfig = !empty(FSC::$app['config']['password_auth']) ? FSC::$app['config']['password_auth'] : array(); |
|
|
|
|
|
|
|
|
|
$dir_ext_status = !empty($_COOKIE['dir_ext_status']) ? $_COOKIE['dir_ext_status'] : 'opened'; |
|
|
|
|
$menu_ext_status = !empty($_COOKIE['menu_ext_status']) ? $_COOKIE['menu_ext_status'] : FSC::$app['config']['defaultMenuStatusInPC']; |
|
|
|
|
|
|
|
|
@ -105,9 +108,22 @@ eof;
@@ -105,9 +108,22 @@ eof;
|
|
|
|
|
<small class="badge">{$fileTotal}</small> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//目录图标支持加密目录 |
|
|
|
|
$dirIcon = "folder.svg"; |
|
|
|
|
if (!empty($authConfig['enable']) && $authConfig['enable'] !== 'false' |
|
|
|
|
&& ( |
|
|
|
|
( empty($authConfig['default']) && !empty($authConfig['allow'][$item['directory']]) ) |
|
|
|
|
|| |
|
|
|
|
!empty($authConfig['default']) //如果所有目录都需要密码 |
|
|
|
|
) |
|
|
|
|
) { |
|
|
|
|
$dirIcon = "lock-fill.svg"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo <<<eof |
|
|
|
|
<li><a href="{$item['path']}"> |
|
|
|
|
<img src="/img/beauty/folder.svg" alt="directories" width="17" class="menu-icon"> |
|
|
|
|
<img src="/img/beauty/{$dirIcon}" alt="directories" width="17" class="menu-icon"> |
|
|
|
|
{$item['directory']} |
|
|
|
|
{$htmlFileTotal} |
|
|
|
|
</a></li> |
|
|
|
|