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

Diff of /fenglin/bbs/post_service.php

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

Revision 1.2 by sysadm, Fri Apr 4 07:56:29 2025 UTC Revision 1.4 by sysadm, Sat Apr 5 15:19:16 2025 UTC
# Line 365  Line 365 
365          // Get upload quota and used space          // Get upload quota and used space
366          $atta_id_list = "-1";          $atta_id_list = "-1";
367          $attachment_count = (isset($_FILES['attachment']['error']) ? count($_FILES['attachment']['error']) : 0);          $attachment_count = (isset($_FILES['attachment']['error']) ? count($_FILES['attachment']['error']) : 0);
368            if ($attachment_count > $BBS_upload_count_limit)
         if ($attachment_count >= $BBS_upload_count_limit)  
369          {          {
370                  $result_set["return"]["code"] = -1;                  $result_set["return"]["code"] = -1;
371                  array_push($result_set["return"]["errorFields"], array(                  array_push($result_set["return"]["errorFields"], array(
# Line 623  Line 622 
622                          while ($row = mysqli_fetch_array($rs))                          while ($row = mysqli_fetch_array($rs))
623                          {                          {
624                                  //Send notification message                                  //Send notification message
   
625                                  $msg_content = "[hide]SYS_Reply_Article[/hide]有人回复了您所发表/回复的主题文章,快来".                                  $msg_content = "[hide]SYS_Reply_Article[/hide]有人回复了您所发表/回复的主题文章,快来".
626                                          "[article " . $tid . "#" . $aid . "]看看[/article]《" . $r_title . "》吧!\n";                                          "[article $aid]看看[/article]《" . $r_title . "》吧!\n";
627    
628                                  $sql = "INSERT INTO bbs_msg(fromUID, toUID, content, send_dt, send_ip)                                  $sql = "INSERT INTO bbs_msg(fromUID, toUID, content, send_dt, send_ip)
629                                                  VALUES($BBS_sys_uid, " . $row["UID"] . ", '" .                                                  VALUES($BBS_sys_uid, " . $row["UID"] . ", '" .


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

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