案例(删除文章扣10积分):
function ActivePlugin_tc_cs() { Add_Filter_Plugin('Filter_Plugin_DelArticle_Succeed','ytecn_delarticle_succeed'); } function ytecn_delarticle_succeed(&$article) { $data = array( 'pid' => $article->ID, 'title' => "删除文章扣10积分", 'num' => -10, 'Time' => time() ); $sql_in = $zbp->db->sql->Insert('%pre%user_jf_log',$data); $zbp->db->Insert($sql_in); }