/[LeafOK_CVS]/lbbs/src/article_post.c
ViewVC logotype

Diff of /lbbs/src/article_post.c

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

Revision 1.16 by sysadm, Sun Jun 15 03:16:44 2025 UTC Revision 1.18 by sysadm, Sun Jun 15 06:19:21 2025 UTC
# Line 378  int article_post(const SECTION_LIST *p_s Line 378  int article_post(const SECTION_LIST *p_s
378                  goto cleanup;                  goto cleanup;
379          }          }
380    
381            mysql_close(db);
382            db = NULL;
383    
384          clearscr();          clearscr();
385          moveto(1, 1);          moveto(1, 1);
386          prints("发送完成,新文章通常会在%d秒后可见", BBS_section_list_load_interval);          prints("发送完成,新文章通常会在%d秒后可见", BBS_section_list_load_interval);
# Line 653  int article_modify(const SECTION_LIST *p Line 656  int article_modify(const SECTION_LIST *p
656                  goto cleanup;                  goto cleanup;
657          }          }
658    
659            mysql_close(db);
660            db = NULL;
661    
662          clearscr();          clearscr();
663          moveto(1, 1);          moveto(1, 1);
664          prints("修改完成,新内容通常会在%d秒后可见", BBS_section_list_load_interval);          prints("修改完成,新内容通常会在%d秒后可见", BBS_section_list_load_interval);
# Line 756  int article_reply(const SECTION_LIST *p_ Line 762  int article_reply(const SECTION_LIST *p_
762    
763          if (topic_locked) // Reply is not allowed          if (topic_locked) // Reply is not allowed
764          {          {
765                    mysql_close(db);
766                    db = NULL;
767    
768                  clearscr();                  clearscr();
769                  moveto(1, 1);                  moveto(1, 1);
770                  prints("该主题谢绝回复");                  prints("该主题谢绝回复");
# Line 819  int article_reply(const SECTION_LIST *p_ Line 828  int article_reply(const SECTION_LIST *p_
828                          len += 2;                          len += 2;
829                          memcpy(content + len, content_f + line_offsets[i], (size_t)(line_offsets[i + 1] - line_offsets[i]));                          memcpy(content + len, content_f + line_offsets[i], (size_t)(line_offsets[i + 1] - line_offsets[i]));
830                          len += (line_offsets[i + 1] - line_offsets[i]);                          len += (line_offsets[i + 1] - line_offsets[i]);
831                            if (content[len - 1] != '\n') // Appennd \n if not exist
832                            {
833                                    content[len] = '\n';
834                                    len++;
835                            }
836                  }                  }
837                  if (content[len - 1] != '\n') // Appennd \n if not exist                  if (content[len - 1] != '\n') // Appennd \n if not exist
838                  {                  {
# Line 1150  int article_reply(const SECTION_LIST *p_ Line 1164  int article_reply(const SECTION_LIST *p_
1164                  goto cleanup;                  goto cleanup;
1165          }          }
1166    
1167            mysql_close(db);
1168            db = NULL;
1169    
1170          clearscr();          clearscr();
1171          moveto(1, 1);          moveto(1, 1);
1172          prints("发送完成,新文章通常会在%d秒后可见", BBS_section_list_load_interval);          prints("发送完成,新文章通常会在%d秒后可见", BBS_section_list_load_interval);


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

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