| 3 |
* section_list_display |
* section_list_display |
| 4 |
* - user interactive feature of section articles list |
* - user interactive feature of section articles list |
| 5 |
* |
* |
| 6 |
* Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com> |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
#include "article_cache.h" |
#include "article_cache.h" |
| 31 |
#include <time.h> |
#include <time.h> |
| 32 |
#include <sys/param.h> |
#include <sys/param.h> |
| 33 |
|
|
| 34 |
#define TITLE_SEARCH_MAX_LEN 60 |
enum _section_list_display_constant_t |
| 35 |
|
{ |
| 36 |
|
TITLE_SEARCH_MAX_LEN = 60, |
| 37 |
|
}; |
| 38 |
|
|
| 39 |
static int32_t section_aid_locations[BBS_max_section] = {0}; |
static int32_t section_aid_locations[BBS_max_section] = {0}; |
| 40 |
static int section_topic_view_mode = 0; |
static int section_topic_view_mode = 0; |
| 274 |
log_error("KEY_NULL\n"); |
log_error("KEY_NULL\n"); |
| 275 |
return EXIT_SECTION; |
return EXIT_SECTION; |
| 276 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 277 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 278 |
{ |
{ |
| 279 |
log_error("User input timeout\n"); |
log_error("User input timeout\n"); |
| 280 |
return EXIT_SECTION; |
return EXIT_SECTION; |
| 1401 |
log_error("KEY_NULL\n"); |
log_error("KEY_NULL\n"); |
| 1402 |
return 0; |
return 0; |
| 1403 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 1404 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 1405 |
{ |
{ |
| 1406 |
log_error("User input timeout\n"); |
log_error("User input timeout\n"); |
| 1407 |
return 0; |
return 0; |