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

Diff of /lbbs/src/menu_proc.c

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

Revision 1.43 by sysadm, Wed Oct 22 04:48:53 2025 UTC Revision 1.46 by sysadm, Wed Nov 5 01:04:06 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                    menu_proc.c  -  description  /*
3                                                           -------------------   * menu_proc
4          Copyright            : (C) 2004-2025 by Leaflet   *   - handler functions of menu commands
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_cache.h"  #include "article_cache.h"
10  #include "article_favor_display.h"  #include "article_favor_display.h"
# Line 44  int list_section(void *param) Line 36  int list_section(void *param)
36          return REDRAW;          return REDRAW;
37  }  }
38    
39  typedef union exec_handler_t{  typedef union exec_handler_t
40    {
41          void *p;          void *p;
42          int (*handler)();          int (*handler)();
43  } exec_handler;  } exec_handler;
# Line 276  int show_top10_menu(void *param) Line 269  int show_top10_menu(void *param)
269                                  show_top10 = 0;                                  show_top10 = 0;
270                                  return 0;                                  return 0;
271                          case KEY_TIMEOUT:                          case KEY_TIMEOUT:
272                                  if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME)                                  if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)
273                                  {                                  {
274                                          log_error("User input timeout\n");                                          log_error("User input timeout\n");
275                                          show_top10 = 0;                                          show_top10 = 0;


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

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