function ViewBbs($tid = 0) { $m_tl = '回复'; $limit = max(0, (int) jconf::get('show', 'topic_one_comment', 'list')); if ($limit < 1) { $limit = 6; } $tid = max(0, (double) ($tid ? $tid : get_param('tid'))); $info = array(); if ($tid > 0) { if ($this->Config['dzbbs_enable']) { if (jconf::get('dzbbs')) { Load::logic("topic_bbs"); $TopicBbsLogic = new TopicBbsLogic(); $info = $TopicBbsLogic->get_reply($tid); } } elseif ($this->Config['phpwind_enable']) { $config = array(); $config['phpwind'] = jconf::get('phpwind'); if ($config['phpwind']['bbs']) { Load::logic("topic_bbs"); $TopicBbsLogic = new TopicBbsLogic(); $info = $TopicBbsLogic->get_reply($tid); } } } if (!empty($info)) { $replys = $info['count']; $reply_list = $info['list']; $replyurl = $info['url']; } include template('topic_view_cmsbbs_ajax'); }