| 21 |
#include <netinet/in.h> |
#include <netinet/in.h> |
| 22 |
|
|
| 23 |
// BBS |
// BBS |
| 24 |
#define BBS_max_section 1024 |
#define BBS_max_section 200 |
| 25 |
|
#define BBS_section_name_max_len 20 |
| 26 |
|
#define BBS_section_title_max_len 20 |
| 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 |
| 30 |
|
|
| 31 |
extern char BBS_id[20]; |
extern char BBS_id[20]; |
| 32 |
extern char BBS_name[50]; |
extern char BBS_name[50]; |
| 38 |
extern char BBS_start_dt[50]; |
extern char BBS_start_dt[50]; |
| 39 |
|
|
| 40 |
// Session |
// Session |
| 41 |
#define MAX_DELAY_TIME 600 |
#define MAX_DELAY_TIME 600 // 10 minutes |
| 42 |
|
#define BBS_user_off_line 900 // 15 minutes |
| 43 |
|
|
| 44 |
extern char BBS_username[BBS_username_max_len + 1]; |
extern char BBS_username[BBS_username_max_len + 1]; |
| 45 |
|
|
| 46 |
extern time_t BBS_login_tm; |
extern time_t BBS_login_tm; |
| 47 |
extern time_t BBS_last_access_tm; |
extern time_t BBS_last_access_tm; |
| 48 |
|
|
| 49 |
extern char BBS_current_section_name[20]; |
extern char BBS_current_section_name[BBS_section_name_max_len + 1]; |
| 50 |
|
|
| 51 |
extern char *setuserfile(char *buf, size_t len, const char *filename); |
extern char *setuserfile(char *buf, size_t len, const char *filename); |
| 52 |
|
|