/[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.29 by sysadm, Fri Oct 10 03:50:22 2025 UTC Revision 1.34 by sysadm, Sat Oct 18 13:22:52 2025 UTC
# Line 90  int article_post(const SECTION_LIST *p_s Line 90  int article_post(const SECTION_LIST *p_s
90          {          {
91                  clearscr();                  clearscr();
92                  moveto(21, 1);                  moveto(21, 1);
93                  prints("发表文章于 %s[%s] 讨论区,类型: %s,通知:%s",                  prints("发表文章于 %s[%s] 讨论区,类型: %s,回复通知:%s",
94                             p_section->stitle, p_section->sname,                             p_section->stitle, p_section->sname,
95                             (p_article_new->transship ? "转载" : "原创"),                             (p_article_new->transship ? "转载" : "原创"),
96                             (reply_note ? "开启" : "关闭"));                             (reply_note ? "开启" : "关闭"));
# Line 106  int article_post(const SECTION_LIST *p_s Line 106  int article_post(const SECTION_LIST *p_s
106                          moveto(24, 1);                          moveto(24, 1);
107                          prints("T改标题, C取消, Z设为%s, N%s, Enter继续: ",                          prints("T改标题, C取消, Z设为%s, N%s, Enter继续: ",
108                                     (p_article_new->transship ? "原创" : "转载"),                                     (p_article_new->transship ? "原创" : "转载"),
109                                     (reply_note ? "通知关闭" : "通知开启"));                                     (reply_note ? "关闭回复通知" : "开启回复通知"));
110                          iflush();                          iflush();
111                          ch = 0;                          ch = 0;
112                  }                  }
# Line 119  int article_post(const SECTION_LIST *p_s Line 119  int article_post(const SECTION_LIST *p_s
119                          case KEY_TIMEOUT:                          case KEY_TIMEOUT:
120                                  goto cleanup;                                  goto cleanup;
121                          case CR:                          case CR:
                                 igetch_reset();  
122                                  break;                                  break;
123                          case 'T':                          case 'T':
124                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN);                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN);
# Line 183  int article_post(const SECTION_LIST *p_s Line 182  int article_post(const SECTION_LIST *p_s
182                                  case KEY_TIMEOUT:                                  case KEY_TIMEOUT:
183                                          goto cleanup;                                          goto cleanup;
184                                  case CR:                                  case CR:
                                         igetch_reset();  
185                                  case 'S':                                  case 'S':
186                                          break;                                          break;
187                                  case 'C':                                  case 'C':
# Line 523  int article_modify(const SECTION_LIST *p Line 521  int article_modify(const SECTION_LIST *p
521                  {                  {
522                          clearscr();                          clearscr();
523                          moveto(1, 1);                          moveto(1, 1);
524                          prints("(S)保存, (C)取消, (N)通知%s or (E)再编辑? [S]: ",                          prints("(S)保存, (C)取消, (N)%s回复通知 or (E)再编辑? [S]: ",
525                                     (reply_note ? "关闭" : "开启"));                                     (reply_note ? "关闭" : "开启"));
526                          iflush();                          iflush();
527    
# Line 534  int article_modify(const SECTION_LIST *p Line 532  int article_modify(const SECTION_LIST *p
532                          case KEY_TIMEOUT:                          case KEY_TIMEOUT:
533                                  goto cleanup;                                  goto cleanup;
534                          case CR:                          case CR:
                                 igetch_reset();  
535                          case 'S':                          case 'S':
536                                  break;                                  break;
537                          case 'C':                          case 'C':
# Line 734  int article_reply(const SECTION_LIST *p_ Line 731  int article_reply(const SECTION_LIST *p_
731          int content_display_length;          int content_display_length;
732          char nickname_f[BBS_nickname_max_len * 2 + 1];          char nickname_f[BBS_nickname_max_len * 2 + 1];
733          int sign_id = 0;          int sign_id = 0;
734          int reply_note = 1;          int reply_note = 0;
735          long len;          long len;
736          int ch;          int ch;
737          char *p, *q;          char *p, *q;
# Line 854  int article_reply(const SECTION_LIST *p_ Line 851  int article_reply(const SECTION_LIST *p_
851                  }                  }
852    
853                  // Apply LML render to content body                  // Apply LML render to content body
854                  len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, 0);                  len = lml_render(row[1], content_f, ARTICLE_CONTENT_MAX_LEN, 1);
855                  content_f[len] = '\0';                  content_f[len] = '\0';
856    
857                  // Remove control sequence                  // Remove control sequence
# Line 909  int article_reply(const SECTION_LIST *p_ Line 906  int article_reply(const SECTION_LIST *p_
906          {          {
907                  clearscr();                  clearscr();
908                  moveto(21, 1);                  moveto(21, 1);
909                  prints("回复文章于 %s[%s] 讨论区,通知:%s", p_section->stitle, p_section->sname, (reply_note ? "开启" : "关闭"));                  prints("回复文章于 %s[%s] 讨论区,回复通知:%s", p_section->stitle, p_section->sname, (reply_note ? "开启" : "关闭"));
910                  moveto(22, 1);                  moveto(22, 1);
911                  prints("标题: %s", (p_article_new->title[0] == '\0' ? "[无]" : p_article_new->title));                  prints("标题: %s", (p_article_new->title[0] == '\0' ? "[无]" : p_article_new->title));
912                  moveto(23, 1);                  moveto(23, 1);
# Line 921  int article_reply(const SECTION_LIST *p_ Line 918  int article_reply(const SECTION_LIST *p_
918    
919                          moveto(24, 1);                          moveto(24, 1);
920                          prints("T改标题, C取消, N%s, Enter继续: ",                          prints("T改标题, C取消, N%s, Enter继续: ",
921                                     (reply_note ? "通知关闭" : "通知开启"));                                     (reply_note ? "关闭回复通知" : "开启回复通知"));
922                          iflush();                          iflush();
923                          ch = 0;                          ch = 0;
924                  }                  }
# Line 934  int article_reply(const SECTION_LIST *p_ Line 931  int article_reply(const SECTION_LIST *p_
931                          case KEY_TIMEOUT:                          case KEY_TIMEOUT:
932                                  goto cleanup;                                  goto cleanup;
933                          case CR:                          case CR:
                                 igetch_reset();  
934                                  break;                                  break;
935                          case 'T':                          case 'T':
936                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN);                                  len = get_data(24, 1, "标题: ", title_input, sizeof(title_input), TITLE_INPUT_MAX_LEN);
# Line 995  int article_reply(const SECTION_LIST *p_ Line 991  int article_reply(const SECTION_LIST *p_
991                                  case KEY_TIMEOUT:                                  case KEY_TIMEOUT:
992                                          goto cleanup;                                          goto cleanup;
993                                  case CR:                                  case CR:
                                         igetch_reset();  
994                                  case 'S':                                  case 'S':
995                                          break;                                          break;
996                                  case 'C':                                  case 'C':
# Line 1211  int article_reply(const SECTION_LIST *p_ Line 1206  int article_reply(const SECTION_LIST *p_
1206          {          {
1207                  // Send notification message                  // Send notification message
1208                  len_msg = snprintf(msg, BBS_msg_max_len,                  len_msg = snprintf(msg, BBS_msg_max_len,
1209                                                     "[hide]SYS_Reply_Article[/hide]有人回复了您所发表/回复的文章,快来"                                                     "有人回复了您所发表/回复的文章,快来"
1210                                                     "[article %d]看看[/article]《%s》吧!\n",                                                     "[article %d]看看[/article]《%s》吧!\n",
1211                                                     p_article_new->aid, title_f);                                                     p_article_new->aid, title_f);
1212    


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

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