/[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.2 by sysadm, Wed Oct 20 07:46:32 2004 UTC Revision 1.8 by sysadm, Mon Apr 28 03:30:59 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                              bbs.c  -  description                                                          bbs.c  -  description
3                               -------------------                                                           -------------------
4      begin                : Mon Oct 18 2004          begin                : Mon Oct 18 2004
5      copyright            : (C) 2004 by Leaflet          copyright            : (C) 2004 by Leaflet
6      email                : leaflet@leafok.com          email                : leaflet@leafok.com
7   ***************************************************************************/   ***************************************************************************/
8    
9  /***************************************************************************  /***************************************************************************
# Line 15  Line 15 
15   *                                                                         *   *                                                                         *
16   ***************************************************************************/   ***************************************************************************/
17    
18  //BBS enviroment  #include "bbs.h"
19    #include <signal.h>
20    #include <time.h>
21    
22    // BBS enviroment
23  char BBS_id[20] = "";  char BBS_id[20] = "";
24  char BBS_name[50] = "";  char BBS_name[50] = "";
25  char BBS_server[256] = "";  char BBS_server[256] = "";
# Line 24  unsigned int BBS_port = 23; Line 28  unsigned int BBS_port = 23;
28  long BBS_max_client = 256;  long BBS_max_client = 256;
29  long BBS_max_user = 10000;  long BBS_max_user = 10000;
30  char BBS_start_dt[50] = "2004年 1月 1日";  char BBS_start_dt[50] = "2004年 1月 1日";
31    
32    char BBS_username[BBS_max_username_length];
33    BBS_user_priv BBS_priv;
34    int BBS_passwd_complex = 0;
35    int BBS_user_money = 0;
36    
37    time_t BBS_login_tm;
38    time_t BBS_last_access_tm;
39    time_t BBS_last_sub_tm;
40    
41    char BBS_current_section_name[20];
42    
43    char *
44    setuserfile(char *buf, const char *filename)
45    {
46            sprintf(buf, "data/%s/%ld", filename, BBS_priv.uid);
47            return buf;
48    }
49    
50    char *
51    sethomefile(char *buf, long int uid, char *filename)
52    {
53            sprintf(buf, "data/%s/%ld", filename, uid);
54            return buf;
55    }


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

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