w7980 发表于 2011-7-10 21:49
为了维护数据库的冗余性,保证在删除图片投票主题帖子后无数据库冗余信息,请站长朋友们将source\function\ ...
function deletethread($tids, $membercount = false, $credit = false, $ponly = false) {
……
foreach(array('forum_forumrecommend', 'forum_polloption', 'forum_poll', 'forum_imgpolloption', 'forum_imgpoll', 'forum_activity', 'forum_activityapply', 'forum_debate',
'forum_debatepost', 'forum_threadmod', 'forum_relatedthread', 'forum_typeoptionvar',
'forum_postposition', 'forum_poststick', 'forum_pollvoter', 'forum_threadimage') as $table) {
DB::delete($table, "tid IN ($tids)");
}
……
} |