| 3 |
* bbs_main |
* bbs_main |
| 4 |
* - entry and major procedures of user interactive access |
* - entry and major procedures of user interactive access |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#include "article_favor.h" |
#include "article_favor.h" |
| 161 |
log_error("KEY_NULL\n"); |
log_error("KEY_NULL\n"); |
| 162 |
return 0; |
return 0; |
| 163 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 164 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 165 |
{ |
{ |
| 166 |
log_error("User input timeout\n"); |
log_error("User input timeout\n"); |
| 167 |
return 0; |
return 0; |
| 274 |
} |
} |
| 275 |
|
|
| 276 |
// Set default charset |
// Set default charset |
| 277 |
if (io_conv_init(BBS_DEFAULT_CHARSET) < 0) |
if (io_conv_init(BBS_default_charset) < 0) |
| 278 |
{ |
{ |
| 279 |
log_error("io_conv_init(%s) error\n", BBS_DEFAULT_CHARSET); |
log_error("io_conv_init(%s) error\n", BBS_default_charset); |
| 280 |
goto cleanup; |
goto cleanup; |
| 281 |
} |
} |
| 282 |
|
|