| 23 |
// BBS |
// BBS |
| 24 |
#define BBS_max_section 200 |
#define BBS_max_section 200 |
| 25 |
#define BBS_section_name_max_len 20 |
#define BBS_section_name_max_len 20 |
| 26 |
#define BBS_section_title_max_len 20 |
#define BBS_section_title_max_len 40 |
| 27 |
#define BBS_username_max_len 12 |
#define BBS_username_max_len 12 |
| 28 |
#define BBS_password_max_len 12 |
#define BBS_password_max_len 12 |
| 29 |
#define BBS_nickname_max_len 20 |
#define BBS_nickname_max_len 40 |
| 30 |
#define BBS_user_tz_max_len 50 |
#define BBS_user_tz_max_len 50 |
| 31 |
|
|
| 32 |
|
#define BBS_msg_max_len 1024 |
| 33 |
|
|
| 34 |
#define BBS_id_max_len 20 |
#define BBS_id_max_len 20 |
| 35 |
#define BBS_name_max_len 50 |
#define BBS_name_max_len 50 |
| 36 |
#define BBS_server_max_len 255 |
#define BBS_server_max_len 255 |
| 46 |
extern in_port_t BBS_port[2]; |
extern in_port_t BBS_port[2]; |
| 47 |
extern int BBS_max_client; |
extern int BBS_max_client; |
| 48 |
extern int BBS_max_client_per_ip; |
extern int BBS_max_client_per_ip; |
|
extern int BBS_max_user; |
|
| 49 |
extern char BBS_start_dt[BBS_start_dt_max_len + 1]; |
extern char BBS_start_dt[BBS_start_dt_max_len + 1]; |
| 50 |
|
extern int BBS_sys_id; |
| 51 |
|
|
| 52 |
|
// User |
| 53 |
|
#define BBS_max_user_count 100000 |
| 54 |
|
#define BBS_user_list_load_interval 60 // second |
| 55 |
|
|
| 56 |
// Session |
// Session |
| 57 |
#define MAX_DELAY_TIME 600 // 10 minutes |
#define MAX_DELAY_TIME 600 // 10 minutes |
| 58 |
#define BBS_user_off_line 900 // 15 minutes |
#define BBS_user_off_line 900 // 15 minutes |
| 59 |
|
|
| 60 |
extern char BBS_username[BBS_username_max_len + 1]; |
extern char BBS_username[BBS_username_max_len + 1]; |
| 68 |
#define BBS_current_action_max_len 20 |
#define BBS_current_action_max_len 20 |
| 69 |
|
|
| 70 |
extern char BBS_current_action[BBS_current_action_max_len + 1]; |
extern char BBS_current_action[BBS_current_action_max_len + 1]; |
| 71 |
|
extern time_t BBS_current_action_tm; |
| 72 |
|
#define BBS_current_action_refresh_interval 60 // 1 minute |
| 73 |
|
|
| 74 |
extern char *setuserfile(char *buf, size_t len, const char *filename); |
extern char *setuserfile(char *buf, size_t len, const char *filename); |
| 75 |
|
|