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;
}
$thread[subject]
{lang like}: $thread[views] {lang reply}: $thread[replies]
$thread[author]$thread[dateline]
注意:在实际操作前,请务必备份相关文件,以防意外情况导致数据丢失。
希望这篇文章能为您带来帮助!如果还有其他问题,欢迎继续探讨。