/[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.7 by sysadm, Sat May 7 09:28:12 2005 UTC Revision 1.21 by sysadm, Thu Jun 5 05:24:55 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   ***************************************************************************/   ***************************************************************************/
16    
17  #include "bbs.h"  #include "bbs.h"
18    #include "common.h"
19    #include "user_priv.h"
20    #include <stdio.h>
21  #include <signal.h>  #include <signal.h>
22  #include <time.h>  #include <time.h>
23    
24  //BBS enviroment  // BBS enviroment
25  char BBS_id[20] = "";  char BBS_id[BBS_id_max_len + 1] = "Example BBS";
26  char BBS_name[50] = "";  char BBS_name[BBS_name_max_len + 1] = "Example Site Name";
27  char BBS_server[256] = "";  char BBS_server[BBS_server_max_len + 1] = "bbs.example.com";
28  char BBS_address[50] = "";  char BBS_address[BBS_address_max_len + 1] = "0.0.0.0";
29  unsigned int BBS_port = 23;  in_port_t BBS_port = 23;
30  long BBS_max_client = 256;  int BBS_max_client = MAX_CLIENT_LIMIT;
31  long BBS_max_user = 10000;  int BBS_max_client_per_ip = MAX_CLIENT_PER_IP_LIMIT;
32  char BBS_start_dt[50] = "2004�� 1�� 1��";  int BBS_max_user = BBS_MAX_USER_LIMIT;
33    char BBS_start_dt[BBS_start_dt_max_len + 1] = "2000Äê 1ÔÂ 1ÈÕ";
34  char BBS_username[BBS_max_username_length];  
35  BBS_user_priv BBS_priv;  char BBS_username[BBS_username_max_len + 1];
36  int BBS_passwd_complex = 0;  char BBS_user_tz[BBS_user_tz_max_len + 1];
 int BBS_user_money = 0;  
37    
38  time_t BBS_login_tm;  time_t BBS_login_tm;
39  time_t BBS_last_access_tm;  time_t BBS_last_access_tm;
 time_t BBS_last_sub_tm;  
40    
41  char BBS_current_section_name[20];  char BBS_current_section_name[BBS_section_name_max_len + 1];
42    
43  char *  char *setuserfile(char *buf, size_t len, const char *filename)
 setuserfile (char *buf, const char *filename)  
44  {  {
45    sprintf (buf, "data/%s/%ld", filename, BBS_priv.uid);          snprintf(buf, len, "%s/%ld", filename, BBS_priv.uid);
46    return buf;          return buf;
 }  
   
 char *  
 sethomefile (char *buf, long int uid, char *filename) {  
     sprintf (buf, "data/%s/%ld", filename, uid);  
     return buf;  
47  }  }


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

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