帖子编辑后自动提升FOR DZX1.5
source/include/post/post_editpost.php找到:$anonymousadd ".($_G['forum_auditstatuson'] && $audit == 1 ? ",invisible='0'" : ", invisible='$pinvisible'").", tags='".implode(',', $tagarray)."' WHERE pid='$pid'");下一行加上:
1.任何人编辑都可以提升:DB::query("UPDATE ".DB::table('forum_thread')." SET lastpost='$_G' WHERE tid='$_G'");
2.只有版主,超版,管理员编辑才可以提升:if(in_array($_G['adminid'],array('1','2','3')))DB::query("UPDATE ".DB::table('forum_thread')." SET lastpost='$_G' WHERE tid='$_G'");
页:
[1]