From 8912bf7c30f2fddd464a5c378ffea2aa61fa92ed Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 24 May 2020 19:15:09 +0800 Subject: [PATCH] show or disable ShowThumb btn --- common.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 = '') ';