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

Diff of /fenglin/bbs/article_service_post.php

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

Revision 1.5 by sysadm, Sun Apr 27 04:18:22 2025 UTC Revision 1.9 by sysadm, Fri Oct 10 12:15:02 2025 UTC
# Line 122  Line 122 
122          // Append indication of article update          // Append indication of article update
123          if ($id != 0)          if ($id != 0)
124          {          {
125                  $content .= ("\n--\n※作者已于 " . date("Y-m-d H:i:s") . " 修改本文※\n");                  $content .= ("\n--\n※ 作者已于 " . (new DateTimeImmutable("", $_SESSION["BBS_user_tz"]))->format("Y-m-d H:i:s (\U\T\C P)") . " 修改本文※\n");
126          }          }
127    
128          // Calculate length of content          // Calculate length of content
# Line 637  Line 637 
637                                  exit(json_encode($result_set));                                  exit(json_encode($result_set));
638                          }                          }
639    
640                          //Notify the authors of the topic which is replyed.                          //Notify the authors of the topic / article which is replyed.
641                          $sql = "SELECT DISTINCT UID FROM bbs WHERE (AID = $tid OR TID = $tid)                          $sql = "SELECT DISTINCT UID FROM bbs WHERE (AID = $tid OR AID = $reply_id)
642                                          AND visible AND reply_note AND UID <> " . $_SESSION["BBS_uid"];                                          AND visible AND reply_note AND UID <> " . $_SESSION["BBS_uid"];
643    
644                          $rs = mysqli_query($db_conn, $sql);                          $rs = mysqli_query($db_conn, $sql);
# Line 654  Line 654 
654                          while ($row = mysqli_fetch_array($rs))                          while ($row = mysqli_fetch_array($rs))
655                          {                          {
656                                  //Send notification message                                  //Send notification message
657                                  $msg_content = "[hide]SYS_Reply_Article[/hide]有人回复了您所发表/回复的主题文章,快来".                                  $msg_content = "有人回复了您所发表/回复的文章,快来".
658                                          "[article $aid]看看[/article]《" . $r_title . "》吧!\n";                                          "[article $aid]看看[/article]《" . $r_title . "》吧!\n";
659    
660                                  $sql = "INSERT INTO bbs_msg(fromUID, toUID, content, send_dt, send_ip)                                  $sql = "INSERT INTO bbs_msg(fromUID, toUID, content, send_dt, send_ip)
# Line 767  Line 767 
767    
768          mysqli_close($db_conn);          mysqli_close($db_conn);
769          exit(json_encode($result_set));          exit(json_encode($result_set));
 ?>  


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

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