| 3 |
* article_del |
* article_del |
| 4 |
* - user interactive feature to delete article |
* - user interactive feature to delete article |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
|
#ifdef HAVE_CONFIG_H |
| 10 |
|
#include "config.h" |
| 11 |
|
#endif |
| 12 |
|
|
| 13 |
#include "article_del.h" |
#include "article_del.h" |
| 14 |
#include "database.h" |
#include "database.h" |
| 15 |
#include "io.h" |
#include "io.h" |
| 51 |
prints("真的要删除文章?(Y)是, (N)否 [N]: "); |
prints("真的要删除文章?(Y)是, (N)否 [N]: "); |
| 52 |
iflush(); |
iflush(); |
| 53 |
|
|
| 54 |
for (ch = 0; !SYS_server_exit; ch = igetch_t(MAX_DELAY_TIME)) |
for (ch = 0; !SYS_server_exit; ch = igetch_t(BBS_max_user_idle_time)) |
| 55 |
{ |
{ |
| 56 |
switch (toupper(ch)) |
switch (toupper(ch)) |
| 57 |
{ |
{ |