时尚酷族

标题: 帖子编辑后自动提升FOR DZX1.5 [打印本页]

作者: CooL.泪猪    时间: 2010-9-7 15:45
标题: 帖子编辑后自动提升FOR DZX1.5
source/include/post/post_editpost.php1 H: o) i/ _3 U2 M2 u
找到:
  1. $anonymousadd ".($_G['forum_auditstatuson'] && $audit == 1 ? ",invisible='0'" : ", invisible='$pinvisible'").", tags='".implode(',', $tagarray)."' WHERE pid='$pid'");
复制代码
下一行加上:" ?1 D) G* |2 N2 I  |% x- C7 e
1.任何人编辑都可以提升:
  1. DB::query("UPDATE ".DB::table('forum_thread')." SET lastpost='$_G[timestamp]' WHERE tid='$_G[tid]'");
复制代码
' u( ?7 g# u: n  ?" g, `$ w# y4 _5 H
2.只有版主,超版,管理员编辑才可以提升:
  1. if(in_array($_G['adminid'],array('1','2','3')))DB::query("UPDATE ".DB::table('forum_thread')." SET lastpost='$_G[timestamp]' WHERE tid='$_G[tid]'");
复制代码
8 g% a. J/ v6 b* N$ S1 y0 n- k





欢迎光临 时尚酷族 (http://www.coqq.net/) Powered by Discuz! X3.2