query("SELECT attach.aid, attach.attachment, t.tid, t.fid, t.subject FROM {$tablepre}attachments attach LEFT JOIN {$tablepre}threads t ON t.tid=attach.tid WHERE attach.readperm='0' AND displayorder>='0' AND filetype='image/pjpeg' $fids GROUP BY attach.tid ORDER BY $orderby DESC LIMIT $searchnums"); while ($pic = $db->fetch_array($query)) { $data['pic'][$pic[aid]]['showpicpics'] = $attachurl.'/'.$pic['attachment']; $data['pic'][$pic[aid]]['showpiclinks'] = "viewthread.php?tid=$pic[tid]"; $data['pic'][$pic[aid]]['showpictexts'] = str_replace('\'', ' ',$pic['subject']); } $data['expiration'] = $cachelife + time(); $data['cacheshownums'] = $shownums; $data['cachesearchnums'] = $searchnums; $data['cachecachelife'] = $cachelife; $data['cacheorderby'] = $orderby; $data['cachecachename'] = $cachename; $data['cachesearchfid'] = $searchfid; require_once DISCUZ_ROOT.'./include/cache.func.php'; writetocache($cachename, '', getcachevars($data)); include(DISCUZ_ROOT.'./forumdata/cache/cache_'.$cachename.'.php'); } shuffle($pic); $i = 0; $j = 0; while ($j < $shownums && isset($pic[$i])) { if(is_readable($pic[$i]['showpicpics'])) { $showpicpics .= $comma.$pic[$i]['showpicpics']; $showpiclinks .= $comma.$pic[$i]['showpiclinks']; $showpictexts .= $comma.$pic[$i]['showpictexts']; $comma = '|'; $j++; } $i++; } ?> var swf_width=260 var swf_height=198 var config='5|0xffffff|0x0099ff|50|0xffffff|0x0099ff|0x000000' // config 設置分別為: 自動播放時間(秒)|文字顏色|文字背景色|文字背景透明度|按鍵數字色|當前按鍵色|普通按鍵色 var files='' var links='' var texts='' document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('');