/[LeafOK_CVS]/lbbs/include/bbs.h
ViewVC logotype

Diff of /lbbs/include/bbs.h

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

Revision 1.30 by sysadm, Tue Oct 21 06:24:51 2025 UTC Revision 1.35 by sysadm, Tue Nov 4 14:58:55 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                          bbs.h  -  description  /*
3                                                           -------------------   * bbs
4          Copyright            : (C) 2004-2025 by Leaflet   *   - BBS related common definitions
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  #ifndef _BBS_H_  #ifndef _BBS_H_
10  #define _BBS_H_  #define _BBS_H_
# Line 37  Line 29 
29  #define BBS_address_max_len 50  #define BBS_address_max_len 50
30  #define BBS_start_dt_max_len 50  #define BBS_start_dt_max_len 50
31    
32  #define BBS_section_list_load_interval 10 // second  extern const int BBS_section_list_load_interval;
33    
34  extern char BBS_id[BBS_id_max_len + 1];  extern char BBS_id[BBS_id_max_len + 1];
35  extern char BBS_name[BBS_name_max_len + 1];  extern char BBS_name[BBS_name_max_len + 1];
# Line 51  extern int BBS_sys_id; Line 43  extern int BBS_sys_id;
43    
44  // User  // User
45  #define BBS_max_user_count 100000  #define BBS_max_user_count 100000
46  #define BBS_user_list_load_interval 60 // second  #define BBS_max_user_online_count 10000
47    extern const int BBS_user_list_load_interval;
48    extern const int BBS_user_online_list_load_interval;
49    
50  // Session  // Session
51  #define MAX_DELAY_TIME 600        // 10 minutes  #define MAX_DELAY_TIME 600 // 10 minutes
52  #define BBS_user_off_line 900 // 15 minutes  extern const int BBS_user_off_line;
53    
54  extern char BBS_username[BBS_username_max_len + 1];  extern char BBS_username[BBS_username_max_len + 1];
55  extern char BBS_nickname[BBS_nickname_max_len + 1];  extern char BBS_nickname[BBS_nickname_max_len + 1];
# Line 69  extern time_t BBS_last_access_tm; Line 63  extern time_t BBS_last_access_tm;
63    
64  extern char BBS_current_action[BBS_current_action_max_len + 1];  extern char BBS_current_action[BBS_current_action_max_len + 1];
65  extern time_t BBS_current_action_tm;  extern time_t BBS_current_action_tm;
66  #define BBS_current_action_refresh_interval 60 // 1 minute  extern const int BBS_current_action_refresh_interval;
67    
68    extern const char *get_astro_name(time_t birthday);
69    extern int get_user_level(int point);
70    extern const char *get_user_level_name(int level);
71    
72  extern char *setuserfile(char *buf, size_t len, const char *filename);  extern char *setuserfile(char *buf, size_t len, const char *filename);
73    


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

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