zhangjingyu
countPosts('-1');
countPosts("+$photoNum");
countPosts("-$affected_rows");
if (empty($action)) {
if ($job == 'delete') {
S::gp(array('selid','type','typeid','title','username','postdate_s','postdate_e','ordertype','page','lines'));
empty($selid) && adminmsg("no_album_selid");
if(!function_exists('countPosts')){
require_once (R_P . 'u/require/core.php');
}
foreach ($selid as $key => $id) {
$thiscomm = $db->get_one("SELECT uid,type,typeid FROM pw_comment WHERE id=".S::sqlEscape($id));
$updatenum = 0;
$db->update("DELETE FROM pw_comment WHERE id=".S::sqlEscape($id));
$updatenum += $db->affected_rows();
$db->update("DELETE FROM pw_comment WHERE upid=".S::sqlEscape($id));
$updatenum += $db->affected_rows();
list($app_table,$app_filed) = getCommTypeTable($thiscomm['type']);
if ($updatenum && $app_table && $thiscomm['typeid']) {
$db->update("UPDATE $app_table SET c_num=c_num-".S::sqlEscape($updatenum)." WHERE $app_filed=".S::sqlEscape($thiscomm['typeid']));
}
countPosts("-$updatenum");
}怎么这么多,很有意思吗?那么,要不要屏蔽两个文件中的函数?