/[LeafOK_CVS]/lbbs/src/bbs_main.c
ViewVC logotype

Diff of /lbbs/src/bbs_main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.96 by sysadm, Sun Nov 2 08:13:50 2025 UTC Revision 1.99 by sysadm, Wed Nov 5 01:04:05 2025 UTC
# Line 1  Line 1 
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"
# Line 169  int bbs_center() Line 161  int bbs_center()
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;
# Line 323  int bbs_main() Line 315  int bbs_main()
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          {          {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1