Browse Source

add default config of password auth

master
filesite 2 weeks ago
parent
commit
f6c498cb7c
  1. 4
      conf/app.php
  2. 2
      themes/beauty/views/site/index.php

4
conf/app.php

@ -198,6 +198,10 @@ $configs = array( @@ -198,6 +198,10 @@ $configs = array(
//Google Adwords目标跟踪ID
'GAD_MEASUREMENT_ID' => '',
//密码授权默认关闭
"password_auth" => array(
"enable" => false,
),
);
//自定义配置支持

2
themes/beauty/views/site/index.php

@ -8,7 +8,7 @@ $audioExts = !empty(FSC::$app['config']['supportedAudioExts']) ? FSC::$app['conf @@ -8,7 +8,7 @@ $audioExts = !empty(FSC::$app['config']['supportedAudioExts']) ? FSC::$app['conf
$supportedExts = array_merge($imgExts, $videoExts, $audioExts);
//需密码授权的目录显示lock图标
$authConfig = FSC::$app['config']['password_auth'];
$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'];

Loading…
Cancel
Save