/[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.22 by sysadm, Thu Jun 5 08:36:02 2025 UTC Revision 1.29 by sysadm, Tue Oct 21 06:24:51 2025 UTC
# Line 32  char BBS_address[BBS_address_max_len + 1 Line 32  char BBS_address[BBS_address_max_len + 1
32  in_port_t BBS_port[2] = {BBS_port_default, BBS_ssh_port_default};  in_port_t BBS_port[2] = {BBS_port_default, BBS_ssh_port_default};
33  int BBS_max_client = MAX_CLIENT_LIMIT;  int BBS_max_client = MAX_CLIENT_LIMIT;
34  int BBS_max_client_per_ip = MAX_CLIENT_PER_IP_LIMIT;  int BBS_max_client_per_ip = MAX_CLIENT_PER_IP_LIMIT;
35  int BBS_max_user = BBS_MAX_USER_LIMIT;  char BBS_start_dt[BBS_start_dt_max_len + 1] = "2000å¹´ 1月 1æ—¥";
36  char BBS_start_dt[BBS_start_dt_max_len + 1] = "2000Äê 1ÔÂ 1ÈÕ";  int BBS_sys_id = 1;
37    
38  char BBS_username[BBS_username_max_len + 1];  char BBS_username[BBS_username_max_len + 1];
39    char BBS_nickname[BBS_nickname_max_len + 1];
40  char BBS_user_tz[BBS_user_tz_max_len + 1];  char BBS_user_tz[BBS_user_tz_max_len + 1];
41    int BBS_user_exp;
42    
43  time_t BBS_login_tm;  time_t BBS_login_tm;
44  time_t BBS_last_access_tm;  time_t BBS_last_access_tm;
45    
46  char BBS_current_section_name[BBS_section_name_max_len + 1];  char BBS_current_action[BBS_current_action_max_len + 1];
47    time_t BBS_current_action_tm;
48    
49  char *setuserfile(char *buf, size_t len, const char *filename)  char *setuserfile(char *buf, size_t len, const char *filename)
50  {  {
51          snprintf(buf, len, "%s/%ld", filename, BBS_priv.uid);          snprintf(buf, len, "%s/%d", filename, BBS_priv.uid);
52          return buf;          return buf;
53  }  }


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

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