zhangjingyu
if ($article == '0') {
$pw_tmsgs = GetTtable($tid);
$S_sql = ',m.uid,m.groupid,m.userstatus,tm.ifsign,tm.content';
$J_sql = "LEFT JOIN pw_members m ON m.uid=t.authorid LEFT JOIN $pw_tmsgs tm ON tm.tid=t.tid";
} else {
$S_sql = $J_sql = '';
}
$tpcarray = $db->get_one("SELECT t.tid,t.fid,t.locked,t.ifcheck,t.author,t.authorid,t.postdate,t.lastpost,t.ifmail,t.special,t.subject,t.type,t.ifshield,t.anonymous,t.ptable,t.replies,t.tpcstatus,t.lastposter $S_sql FROM pw_threads t $J_sql WHERE t.tid=" . S::sqlEscape($tid));这是require/postreply.php的查询及附加条件。