Hmily_LCG 2017-03-08 10:41:32 +08:00
parent 96364cb1b1
commit a9c7f92fa6
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ dheader('Content-Length: '.$filesize);
$xsendfile = getglobal('config/download/xsendfile'); $xsendfile = getglobal('config/download/xsendfile');
if(!empty($xsendfile)) { if(!empty($xsendfile)) {
$type = intval($xsendfile['type']); $type = intval($xsendfile['type']);
if($isimage){
$type = 0;
}
$cmd = ''; $cmd = '';
switch ($type) { switch ($type) {
case 1: $cmd = 'X-Accel-Redirect'; $url = $xsendfile['dir'].$attach['attachment']; break; case 1: $cmd = 'X-Accel-Redirect'; $url = $xsendfile['dir'].$attach['attachment']; break;