/[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.31 by sysadm, Fri Oct 10 12:19:41 2025 UTC Revision 1.33 by sysadm, Fri Oct 17 01:25:08 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 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':


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

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