if(in_array($_G['fid'], unserialize($config['lj_forums']))) {
$tid = intval($_G['tid']);
if($config['is_fid']){
$con=" AND fid = '".intval($_G['fid'])."' ";
}
$shang = DB::fetch_first("SELECT tid,subject FROM ".DB::table('forum_thread')." WHERE tid < '$tid' $con AND displayorder >= 0 ORDER BY tid DESC");
$shang = dhtmlspecialchars($shang);
$xia = DB::fetch_first("SELECT tid,subject FROM ".DB::table('forum_thread')." WHERE tid > '$tid' $con AND displayorder >= 0 ORDER BY tid");
$xia = dhtmlspecialchars($xia);
$postlist[$key]['message'] .= '<br><br>';
if($shang['tid']){
$postlist[$key]['message'] .= '<br><b>'.lang('plugin/seo','new_2').'</b><a href="forum.php?mod=viewthread&tid='.$shang['tid'].'" title="'.$shang['subject'].'" target="_blank">'.$shang['subject'].'</a>';
}
if($xia['tid']){
$postlist[$key]['message'] .= '<br><b>'.lang('plugin/seo','new_3').'</b><a href="forum.php?mod=viewthread&tid='.$xia['tid'].'" title="'.$xia['subject'].'" target="_blank">'.$xia['subject'].'</a>';
}
}
}
}
return array();
}
function forumdisplay_modlayer() {
看来就是这样子的代码实现了discuz论坛的上一篇下一篇!
上一篇:
域名访问出现404错误部分城市正常dns错误吗下一篇:
错误应用程序名称: QQExternal.exe,版本: 5.3.10702.0,时间戳: 0x5343a4da