zhangjingyu
通过搜索文件,应该是u/require/core.php和require/app_core.php:
/**
* 圈子中各种用户发表信息统计,记录、分享、群组、相册、回复等
*
* @param string $exp 表达式,包含+或-符号
*/
function countPosts($exp='+1') {
global $db;
$num = intval(trim($exp,'+-'));
if (strpos($exp,'+') !== false) {
//* $db->update("UPDATE pw_bbsinfo SET o_post=o_post+".S::sqlEscape($num,false).",o_tpost=o_tpost+".S::sqlEscape($num,false));
$db->update(pwQuery::buildClause("UPDATE :pw_table SET o_post=o_post+:o_post, o_tpost=o_tpost+:o_tpost", array('pw_bbsinfo',$num, $num)));
} else {
//* $db->update("UPDATE pw_bbsinfo SET o_post=o_post-".S::sqlEscape($num,false).",o_tpost=o_tpost-".S::sqlEscape($num,false));
$db->update(pwQuery::buildClause("UPDATE :pw_table SET o_post=o_post-:o_post, o_tpost=o_tpost-:o_tpost", array('pw_bbsinfo',$num, $num)));
}
}