getthreadcover 函數(shù): function getthreadcover($tid, $cover = 0, $getfilename = 0) { global $_G; if(emptyempty($tid)) { return ''; } $coverpath = ''; $covername = 'threadcover/'.substr(md5($tid), 0, 2).'/'.substr(md5($tid), 2, 2).'/'.$tid.'.jpg'; if($getfilename) { return $covername; } if($cover) { $coverpath = ($cover < 0 ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']).'forum/'.$covername; } return $coverpath; } |
{eval $covername = 'threadcover/'.substr(md5($thread[tid]), 0, 2).'/'.substr(md5($thread[tid]), 2, 2).'/'.$thread[tid].'.jpg'; $coverpath = ($cover < 0 ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']).'forum/'.$covername; } <li style="width: 227px; left: 0px; top: 0px;float:left;"> <div class="c cl"> <a class="z" title="$thread[subject]" onclick="atarget(this)" href="forum.php?mod=viewthread&tid=$thread[tid]"> <img width="203" alt="$thread[subject]" src="{eval echo $coverpath;}"> </a> </div> <h3 class="xw0"> <a href="forum.php?mod=viewthread&tid=$thread[tid]" onclick="atarget(this)" target="_blank" {if $thread['displayorder'] == -1}class="recy"{/if}>$thread[subject]</a> </h3> <div class="auth cl"> <cite class="xg1 y"> {lang like}: <em>$thread[views]</em> {lang reply}: <a title="0回復(fù)" href="forum.php?mod=viewthread&tid=$thread[tid]">$thread[replies]</a> </cite> <a href="home.php?mod=space&uid=$thread[authorid]" target="_blank">$thread[author]</a>$thread[dateline]</div> </li> |
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: discuz 個人空間主題列表圖片顯示