This commit is contained in:
parent
96364cb1b1
commit
a9c7f92fa6
|
@ -259,6 +259,9 @@ dheader('Content-Length: '.$filesize);
|
|||
$xsendfile = getglobal('config/download/xsendfile');
|
||||
if(!empty($xsendfile)) {
|
||||
$type = intval($xsendfile['type']);
|
||||
if($isimage){
|
||||
$type = 0;
|
||||
}
|
||||
$cmd = '';
|
||||
switch ($type) {
|
||||
case 1: $cmd = 'X-Accel-Redirect'; $url = $xsendfile['dir'].$attach['attachment']; break;
|
||||
|
|
Loading…
Reference in New Issue