未验证 提交 6cf4f418 编写于 作者: Q qkqpttgf 提交者: GitHub

add hideFunctionalityFile

上级 4a8bd8aa
......@@ -12,6 +12,7 @@ $Base64Env = [
//'disktag',
//'downloadencrypt',
//'function_name', // used in heroku.
//'hideFunctionalityFile',
//'language',
//'passfile',
'sitename',
......@@ -36,6 +37,7 @@ $CommonEnv = [
'background',
'disktag',
'function_name', // used in heroku.
'hideFunctionalityFile',
'language',
'passfile',
'sitename',
......@@ -52,6 +54,7 @@ $ShowedCommonEnv = [
'background',
//'disktag',
//'function_name', // used in heroku.
'hideFunctionalityFile',
'language',
'passfile',
'sitename',
......@@ -84,6 +87,20 @@ $ShowedInnerEnv = [
//'token_expires',
];
function isHideFile($name)
{
$FunctionalityFile = [
'head.md',
'readme.md',
'favicon.ico',
];
if ($name == getConfig('passfile')) return true;
if (substr($name,0,1) == '.') return true;
if (getConfig('hideFunctionalityFile')) if (in_array(strtolower($name), $FunctionalityFile)) return true;
return false;
}
function getcache($str)
{
//$cache = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册