| 19 |
|
|
| 20 |
//BBS |
//BBS |
| 21 |
#define BBS_max_section 1024 |
#define BBS_max_section 1024 |
| 22 |
|
#define BBS_max_username_length 20 |
| 23 |
|
|
| 24 |
extern char BBS_id[20]; |
extern char BBS_id[20]; |
| 25 |
extern char BBS_name[50]; |
extern char BBS_name[50]; |
| 62 |
{ |
{ |
| 63 |
int sid; |
int sid; |
| 64 |
int s_priv; |
int s_priv; |
| 65 |
}s_priv_list[BBS_max_section]; |
} s_priv_list[BBS_max_section]; |
| 66 |
int s_count; |
int s_count; |
| 67 |
}; |
}; |
| 68 |
|
|
| 69 |
typedef struct user_priv BBS_user_priv; |
typedef struct user_priv BBS_user_priv; |
| 70 |
|
|
| 71 |
//Session |
//Session |
| 72 |
extern BBS_user_priv BBS_priv; |
#define MAX_DELAY_TIME 600 |
| 73 |
|
|
| 74 |
|
extern char BBS_username[BBS_max_username_length]; |
| 75 |
|
extern BBS_user_priv BBS_priv; |
| 76 |
extern int BBS_passwd_complex; |
extern int BBS_passwd_complex; |
| 77 |
|
|
| 78 |
extern time_t BBS_login_tm; |
extern time_t BBS_login_tm; |
| 79 |
extern time_t BBS_last_access_tm; |
extern time_t BBS_last_access_tm; |
| 80 |
extern time_t BBS_last_sub_tm; |
extern time_t BBS_last_sub_tm; |
| 81 |
|
|
| 82 |
|
extern char BBS_current_section_name[20]; |