| 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; |
|
int BBS_max_user = BBS_MAX_USER_LIMIT; |
|
| 35 |
char BBS_start_dt[BBS_start_dt_max_len + 1] = "2000年 1月 1日"; |
char BBS_start_dt[BBS_start_dt_max_len + 1] = "2000年 1月 1日"; |
| 36 |
|
int BBS_sys_id = 1; |
| 37 |
|
|
| 38 |
|
const int BBS_section_list_load_interval = 5; // second |
| 39 |
|
|
| 40 |
|
// User |
| 41 |
|
const int BBS_user_list_load_interval = 60; // 1 minute |
| 42 |
|
const int BBS_user_online_list_load_interval = 5; // 5 seconds |
| 43 |
|
const int BBS_user_off_line = 900; // 15 minutes |
| 44 |
|
|
| 45 |
char BBS_username[BBS_username_max_len + 1]; |
char BBS_username[BBS_username_max_len + 1]; |
| 46 |
char BBS_nickname[BBS_nickname_max_len + 1]; |
char BBS_nickname[BBS_nickname_max_len + 1]; |
| 53 |
char BBS_current_action[BBS_current_action_max_len + 1]; |
char BBS_current_action[BBS_current_action_max_len + 1]; |
| 54 |
time_t BBS_current_action_tm; |
time_t BBS_current_action_tm; |
| 55 |
|
|
| 56 |
|
const int BBS_current_action_refresh_interval = 60; // 1 minute |
| 57 |
|
|
| 58 |
char *setuserfile(char *buf, size_t len, const char *filename) |
char *setuserfile(char *buf, size_t len, const char *filename) |
| 59 |
{ |
{ |
| 60 |
snprintf(buf, len, "%s/%d", filename, BBS_priv.uid); |
snprintf(buf, len, "%s/%d", filename, BBS_priv.uid); |