/[LeafOK_CVS]/fenglin/bbs/restore.php
ViewVC logotype

Diff of /fenglin/bbs/restore.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 by sysadm, Sat Mar 1 08:43:29 2025 UTC Revision 1.3 by sysadm, Thu Mar 6 07:41:52 2025 UTC
# Line 31  if (!($_SESSION["BBS_priv"]->checkpriv($ Line 31  if (!($_SESSION["BBS_priv"]->checkpriv($
31          exit();          exit();
32  }  }
33    
34  mysql_query("update bbs set visible=1,m_del=0,cached=0 where AID=$id")  mysql_query("update bbs set visible=1,m_del=0 where AID=$id")
35          or die("Delete article error!");          or die("Delete article error!");
36    
37  //Add log  //Add log
# Line 41  article_op_log($id,$_SESSION["BBS_uid"], Line 41  article_op_log($id,$_SESSION["BBS_uid"],
41  //Set last reply date  //Set last reply date
42  if ($tid!=0)  if ($tid!=0)
43  {  {
44          mysql_query("update bbs set cached=0,reply_count=reply_count+1 where aid=$tid")          mysql_query("update bbs set reply_count=reply_count+1 where aid=$tid")
45                  or die("Update article error!");                  or die("Update article error!");
46  }  }
47    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1