| 26 |
char BBS_name[50] = ""; |
char BBS_name[50] = ""; |
| 27 |
char BBS_server[256] = ""; |
char BBS_server[256] = ""; |
| 28 |
char BBS_address[50] = ""; |
char BBS_address[50] = ""; |
| 29 |
unsigned int BBS_port = 23; |
in_port_t BBS_port = 23; |
| 30 |
unsigned int BBS_max_client = 256; |
unsigned int BBS_max_client = 256; |
| 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]; |
|
int BBS_user_money = 0; |
|
| 35 |
|
|
| 36 |
time_t BBS_login_tm; |
time_t BBS_login_tm; |
| 37 |
time_t BBS_last_access_tm; |
time_t BBS_last_access_tm; |
| 38 |
|
|
| 39 |
char BBS_current_section_name[20]; |
char BBS_current_section_name[20]; |
| 40 |
|
|
| 41 |
char *setuserfile(char *buf, const char *filename) |
char *setuserfile(char *buf, size_t len, const char *filename) |
| 42 |
{ |
{ |
| 43 |
sprintf(buf, "%s/%ld", filename, BBS_priv.uid); |
snprintf(buf, len, "%s/%ld", filename, BBS_priv.uid); |
| 44 |
return buf; |
return buf; |
| 45 |
} |
} |