| 140 |
show_top(str_section_master, stitle, str_section_name); |
show_top(str_section_master, stitle, str_section_name); |
| 141 |
moveto(2, 0); |
moveto(2, 0); |
| 142 |
prints("返回[\033[1;32m←\033[0;37m,\033[1;32mESC\033[0;37m] 选择[\033[1;32m↑\033[0;37m,\033[1;32m↓\033[0;37m] " |
prints("返回[\033[1;32m←\033[0;37m,\033[1;32mESC\033[0;37m] 选择[\033[1;32m↑\033[0;37m,\033[1;32m↓\033[0;37m] " |
| 143 |
"阅读[\033[1;32m→\033[0;37m,\033[1;32mENTER\033[0;37m]\033[m %s[\033[1;32mn\033[0;37m]\033[m", |
"阅读[\033[1;32m→\033[0;37m,\033[1;32mENTER\033[0;37m] 发表文章[\033[1;32mCtrl-P\033[0;37m] %s[\033[1;32mn\033[0;37m]\033[m", |
| 144 |
(display_nickname ? "显示用户名" : "显示昵称")); |
(display_nickname ? "显示用户名" : "显示昵称")); |
| 145 |
moveto(3, 0); |
moveto(3, 0); |
| 146 |
if (display_nickname) |
if (display_nickname) |
| 544 |
} |
} |
| 545 |
break; |
break; |
| 546 |
case 'r': // Reply article |
case 'r': // Reply article |
| 547 |
if (article_post(p_section, p_articles[selected_index], ARTICLE_POST_REPLY) < 0) |
if (article_reply(p_section, p_articles[selected_index]) < 0) |
| 548 |
{ |
{ |
| 549 |
log_error("article_post(aid=%d, REPLY) error\n", p_articles[selected_index]->aid); |
log_error("article_post(aid=%d, REPLY) error\n", p_articles[selected_index]->aid); |
| 550 |
} |
} |
| 571 |
} |
} |
| 572 |
break; |
break; |
| 573 |
case POST_ARTICLE: |
case POST_ARTICLE: |
| 574 |
if (article_post(p_section, NULL, ARTICLE_POST_NEW) < 0) |
if (article_post(p_section) < 0) |
| 575 |
{ |
{ |
| 576 |
log_error("article_post(sid=%d, NEW) error\n", p_section->sid); |
log_error("article_post(sid=%d, NEW) error\n", p_section->sid); |
| 577 |
} |
} |
| 586 |
{ |
{ |
| 587 |
break; |
break; |
| 588 |
} |
} |
| 589 |
if (article_post(p_section, p_articles[selected_index], ARTICLE_POST_EDIT) < 0) |
if (article_modify(p_section, p_articles[selected_index]) < 0) |
| 590 |
{ |
{ |
| 591 |
log_error("article_post(aid=%d, EDIT) error\n", p_articles[selected_index]->aid); |
log_error("article_post(aid=%d, EDIT) error\n", p_articles[selected_index]->aid); |
| 592 |
} |
} |