diff --git a/common.php b/common.php index a543b02..fa39ac7 100644 --- a/common.php +++ b/common.php @@ -9,6 +9,7 @@ $Base64Env = [ //'adminloginpage', 'background', 'diskname', + //'disableShowThumb', //'disktag', //'downloadencrypt', //'function_name', // used in heroku. @@ -46,6 +47,7 @@ $CommonEnv = [ 'adminloginpage', 'background', 'disktag', + 'disableShowThumb', 'function_name', // used in heroku. 'hideFunctionalityFile', 'timezone', @@ -66,6 +68,7 @@ $ShowedCommonEnv = [ 'adminloginpage', 'background', //'disktag', + 'disableShowThumb', //'function_name', // used in heroku. 'hideFunctionalityFile', 'timezone', @@ -2321,7 +2324,8 @@ function render_list($path = '', $files = '') $tmp = splitfirst($html, ''); $html = $tmp[0]; $tmp = splitfirst($tmp[1], ''); - if (!(isset($_SERVER['USER'])&&$_SERVER['USER']=='qcloud')) { + //if (!(isset($_SERVER['USER'])&&$_SERVER['USER']=='qcloud')) { + if (!getConfig('disableShowThumb')) { $html .= str_replace('', getconstStr('OriginalPic'), $tmp[0]) . $tmp[1]; } else $html .= $tmp[1]; } @@ -2513,7 +2517,10 @@ function render_list($path = '', $files = '') ';