| 1 |
/*************************************************************************** |
/* SPDX-License-Identifier: GPL-3.0-or-later */ |
| 2 |
bbs_main.c - description |
/* |
| 3 |
------------------- |
* bbs_main |
| 4 |
Copyright : (C) 2004-2025 by Leaflet |
* - entry and major procedures of user interactive access |
| 5 |
Email : leaflet@leafok.com |
* |
| 6 |
***************************************************************************/ |
* Copyright (C) 2004-2025 Leaflet <leaflet@leafok.com> |
| 7 |
|
*/ |
|
/*************************************************************************** |
|
|
* * |
|
|
* This program is free software; you can redistribute it and/or modify * |
|
|
* it under the terms of the GNU General Public License as published by * |
|
|
* the Free Software Foundation; either version 3 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
***************************************************************************/ |
|
| 8 |
|
|
| 9 |
#include "article_favor.h" |
#include "article_favor.h" |
| 10 |
#include "article_view_log.h" |
#include "article_view_log.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; |
| 315 |
log_error("article_view_log_load() error\n"); |
log_error("article_view_log_load() error\n"); |
| 316 |
goto cleanup; |
goto cleanup; |
| 317 |
} |
} |
| 318 |
|
|
| 319 |
// Load article view log |
// Load article view log |
| 320 |
if (article_view_log_load(BBS_priv.uid, &BBS_article_view_log, 0) < 0) |
if (article_view_log_load(BBS_priv.uid, &BBS_article_view_log, 0) < 0) |
| 321 |
{ |
{ |