show or disable ShowThumb btn
parent
3edd92f168
commit
8912bf7c30
11
common.php
11
common.php
|
@ -9,6 +9,7 @@ $Base64Env = [
|
||||||
//'adminloginpage',
|
//'adminloginpage',
|
||||||
'background',
|
'background',
|
||||||
'diskname',
|
'diskname',
|
||||||
|
//'disableShowThumb',
|
||||||
//'disktag',
|
//'disktag',
|
||||||
//'downloadencrypt',
|
//'downloadencrypt',
|
||||||
//'function_name', // used in heroku.
|
//'function_name', // used in heroku.
|
||||||
|
@ -46,6 +47,7 @@ $CommonEnv = [
|
||||||
'adminloginpage',
|
'adminloginpage',
|
||||||
'background',
|
'background',
|
||||||
'disktag',
|
'disktag',
|
||||||
|
'disableShowThumb',
|
||||||
'function_name', // used in heroku.
|
'function_name', // used in heroku.
|
||||||
'hideFunctionalityFile',
|
'hideFunctionalityFile',
|
||||||
'timezone',
|
'timezone',
|
||||||
|
@ -66,6 +68,7 @@ $ShowedCommonEnv = [
|
||||||
'adminloginpage',
|
'adminloginpage',
|
||||||
'background',
|
'background',
|
||||||
//'disktag',
|
//'disktag',
|
||||||
|
'disableShowThumb',
|
||||||
//'function_name', // used in heroku.
|
//'function_name', // used in heroku.
|
||||||
'hideFunctionalityFile',
|
'hideFunctionalityFile',
|
||||||
'timezone',
|
'timezone',
|
||||||
|
@ -2321,7 +2324,8 @@ function render_list($path = '', $files = '')
|
||||||
$tmp = splitfirst($html, '<!--ShowThumbnailsStart-->');
|
$tmp = splitfirst($html, '<!--ShowThumbnailsStart-->');
|
||||||
$html = $tmp[0];
|
$html = $tmp[0];
|
||||||
$tmp = splitfirst($tmp[1], '<!--ShowThumbnailsEnd-->');
|
$tmp = splitfirst($tmp[1], '<!--ShowThumbnailsEnd-->');
|
||||||
if (!(isset($_SERVER['USER'])&&$_SERVER['USER']=='qcloud')) {
|
//if (!(isset($_SERVER['USER'])&&$_SERVER['USER']=='qcloud')) {
|
||||||
|
if (!getConfig('disableShowThumb')) {
|
||||||
$html .= str_replace('<!--constStr@OriginalPic-->', getconstStr('OriginalPic'), $tmp[0]) . $tmp[1];
|
$html .= str_replace('<!--constStr@OriginalPic-->', getconstStr('OriginalPic'), $tmp[0]) . $tmp[1];
|
||||||
} else $html .= $tmp[1];
|
} else $html .= $tmp[1];
|
||||||
}
|
}
|
||||||
|
@ -2513,7 +2517,10 @@ function render_list($path = '', $files = '')
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function changetheme(str)
|
function changetheme(str)
|
||||||
{
|
{
|
||||||
document.cookie=\'theme=\'+str+\'; path=/\';
|
var expd = new Date();
|
||||||
|
expd.setTime(expd.getTime()+(2*60*60*1000));
|
||||||
|
var expires = "expires="+expd.toGMTString();
|
||||||
|
document.cookie=\'theme=\'+str+\'; path=/; \'+expires;
|
||||||
location.href = location.href;
|
location.href = location.href;
|
||||||
}
|
}
|
||||||
</script>';
|
</script>';
|
||||||
|
|
Loading…
Reference in New Issue