zhangjingyu
index.htm
帖子$article
index.php(关键字article,第2行查询fd.article、 pw_forumdata和第16行)
if (!Perf::checkMemcache() || !$_tmpForums){
$query = $db->query("SELECT f.fid,f.name,f.type,f.childid,f.fup,f.logo,f.descrip,f.metadescrip,f.forumadmin,f.across,f.allowhtm,f.password,f.allowvisit,f.showsub,f.ifcms,fd.tpost,fd.topic,fd.article,fd.subtopic,fd.top1,fd.lastpost FROM pw_forums f LEFT JOIN pw_forumdata fd USING(fid) WHERE f.ifsub='0' AND f.ifcms!=2 $sqlwhere ORDER BY f.vieworder");
$_tmpForums = array();
while ($forums = $db->fetch_array($query)) {
$_tmpForums[$forums['fid']] = $forums;
}
!$cateid && Perf::checkMemcache() && $_cacheService->set('all_forums_info', $_tmpForums, 300);
}
foreach ($_tmpForums as $forums) {
if ($forums['type'] === 'forum') {
if ($forums['showsub'] && $forums['childid']) {
$showsub[$forums['fid']] = '';
}
$forums['topics'] = $forums['topic'] + $forums['subtopic'];
$article += $forums['article'];
$topics += $forums['topics'];
$tposts += $forums['tpost'];
$article += $o_post;