/[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.8 by sysadm, Fri Oct 10 01:05:49 2025 UTC Revision 1.12 by sysadm, Thu Nov 6 12:39:59 2025 UTC
# Line 52  Line 52 
52                  ));                  ));
53          }          }
54    
55          $r_title = check_badwords($title, "****");          $bw_count = 0;
56          if ($title != $r_title)          $r_title = check_badwords($title, "****", $bw_count);
57            if ($bw_count > 0)
58          {          {
59                  $result_set["return"]["code"] = -1;                  $result_set["return"]["code"] = -1;
60                  array_push($result_set["return"]["errorFields"], array(                  array_push($result_set["return"]["errorFields"], array(
# Line 63  Line 64 
64                  ));                  ));
65          }          }
66    
67          $r_content = check_badwords($content, "****");          $bw_count = 0;
68          if ($content != $r_content)          $r_content = check_badwords($content, "****", $bw_count);
69            if ($bw_count > 0)
70          {          {
71                  $result_set["return"]["code"] = -1;                  $result_set["return"]["code"] = -1;
72                  array_push($result_set["return"]["errorFields"], array(                  array_push($result_set["return"]["errorFields"], array(
# Line 126  Line 128 
128          }          }
129    
130          // Calculate length of content          // Calculate length of content
131          $length = str_length(LML($content, false, false, 1024));          $length = str_length($content, true);
132    
133          // Initial variables          // Initial variables
134          $tid = 0;          $tid = 0;
# Line 654  Line 656 
656                          while ($row = mysqli_fetch_array($rs))                          while ($row = mysqli_fetch_array($rs))
657                          {                          {
658                                  //Send notification message                                  //Send notification message
659                                  $msg_content = "[hide]SYS_Reply_Article[/hide]有人回复了您所发表/回复的文章,快来".                                  $msg_content = "有人回复了您所发表/回复的文章,快来".
660                                          "[article $aid]看看[/article]《" . $r_title . "》吧!\n";                                          "[article $aid]看看[/article]《" . $r_title . "》吧!\n";
661    
662                                  $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