/[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.7 by sysadm, Tue Jun 3 03:04:16 2025 UTC Revision 1.10 by sysadm, Fri Oct 24 02:45:16 2025 UTC
# Line 126  Line 126 
126          }          }
127    
128          // Calculate length of content          // Calculate length of content
129          $length = str_length(LML($content, false, false, 1024));          $length = str_length(LML($content, false, 1024));
130    
131          // Initial variables          // Initial variables
132          $tid = 0;          $tid = 0;
# 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)


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

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