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

Diff of /lbbs/src/bbs.c

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

Revision 1.11 by sysadm, Sun May 4 14:54:55 2025 UTC Revision 1.19 by sysadm, Tue Jun 3 13:14:26 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                                                          bbs.c  -  description                                                          bbs.c  -  description
3                                                           -------------------                                                           -------------------
4          begin                : Mon Oct 18 2004          Copyright            : (C) 2004-2025 by Leaflet
5          copyright            : (C) 2004 by Leaflet          Email                : leaflet@leafok.com
         email                : leaflet@leafok.com  
6   ***************************************************************************/   ***************************************************************************/
7    
8  /***************************************************************************  /***************************************************************************
9   *                                                                         *   *                                                                         *
10   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
11   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
12   *   the Free Software Foundation; either version 2 of the License, or     *   *   the Free Software Foundation; either version 3 of the License, or     *
13   *   (at your option) any later version.                                   *   *   (at your option) any later version.                                   *
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
# Line 25  Line 24 
24  char BBS_id[20] = "";  char BBS_id[20] = "";
25  char BBS_name[50] = "";  char BBS_name[50] = "";
26  char BBS_server[256] = "";  char BBS_server[256] = "";
27  char BBS_address[50] = "";  char BBS_address[50] = "0.0.0.0";
28  unsigned int BBS_port = 23;  in_port_t BBS_port = 23;
29  unsigned int BBS_max_client = 256;  unsigned int BBS_max_client = 256;
30    unsigned int BBS_max_client_per_ip = 5;
31  unsigned int BBS_max_user = 10000;  unsigned int BBS_max_user = 10000;
32  char BBS_start_dt[50] = "2004年 1月 1日";  char BBS_start_dt[50] = "2004年 1月 1日";
33    
34  char BBS_username[BBS_username_max_len + 1];  char BBS_username[BBS_username_max_len + 1];
35  int BBS_user_money = 0;  char BBS_user_tz[BBS_user_tz_max_len + 1];
36    
37  time_t BBS_login_tm;  time_t BBS_login_tm;
38  time_t BBS_last_access_tm;  time_t BBS_last_access_tm;
39    
40  char BBS_current_section_name[20];  char BBS_current_section_name[BBS_section_name_max_len + 1];
41    
42  char *setuserfile(char *buf, const char *filename)  char *setuserfile(char *buf, size_t len, const char *filename)
43  {  {
44          sprintf(buf, "%s/%ld", filename, BBS_priv.uid);          snprintf(buf, len, "%s/%ld", filename, BBS_priv.uid);
45          return buf;          return buf;
46  }  }


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

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