fetch('aid:'.$daid, $daid, array(1, -1))) { if(!$dw && !$dh && $attach['tid'] != $id) { dheader('location: '.$_G['siteurl'].'static/image/common/none.gif'); } dheader('Expires: '.gmdate('D, d M Y H:i:s', TIMESTAMP + 3600).' GMT'); if($attach['remote']) { $filename = $_G['setting']['ftp']['attachurl'].'forum/'.$attach['attachment']; } else { $filename = $_G['setting']['attachdir'].'forum/'.$attach['attachment']; } require_once libfile('class/image'); $img = new image; if($img->Thumb($filename, $thumbfile, $w, $h, $type)) { if($nocache) { dheader('Content-Type: image'); @readfile($_G['setting']['attachdir'].$thumbfile); @unlink($_G['setting']['attachdir'].$thumbfile); } else { dheader('location: '.$attachurl.$thumbfile); } } else { dheader('Content-Type: image'); @readfile($filename); } } exit; } } ?>