/[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.9 by sysadm, Mon Apr 28 12:45:57 2025 UTC Revision 1.10 by sysadm, Wed Apr 30 09:18:19 2025 UTC
# Line 16  Line 16 
16   ***************************************************************************/   ***************************************************************************/
17    
18  #include "bbs.h"  #include "bbs.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    
# Line 30  long BBS_max_user = 10000; Line 32  long 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_max_username_length];  char BBS_username[BBS_max_username_length];
 BBS_user_priv BBS_priv;  
 int BBS_passwd_complex = 0;  
35  int BBS_user_money = 0;  int BBS_user_money = 0;
36    
37  time_t BBS_login_tm;  time_t BBS_login_tm;
# Line 39  time_t BBS_last_access_tm; Line 39  time_t BBS_last_access_tm;
39    
40  char BBS_current_section_name[20];  char BBS_current_section_name[20];
41    
42  char *  char *setuserfile(char *buf, const char *filename)
 setuserfile(char *buf, const char *filename)  
43  {  {
44          sprintf(buf, "data/%s/%ld", filename, BBS_priv.uid);          sprintf(buf, "var/%s/%ld", filename, BBS_priv.uid);
45          return buf;          return buf;
46  }  }
47    
48  char *  char *sethomefile(char *buf, long int uid, char *filename)
 sethomefile(char *buf, long int uid, char *filename)  
49  {  {
50          sprintf(buf, "data/%s/%ld", filename, uid);          sprintf(buf, "var/%s/%ld", filename, uid);
51          return buf;          return buf;
52  }  }


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

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