基本就事原先1.1的,没变什么啊
struct userec { /* Structure used to hold information in */
char userid[IDLEN + 2]; /* PASSFILE */
char flags; /*一些标志,戒网,版面排序之类的 */
unsigned char title; /*用户级别 */
time_t firstlogin;
char lasthost[16];
unsigned int numlogins;
unsigned int numposts;
#ifdef CONV_PASS
char passwd[OLDPASSLEN];
char unused_padding[2];
#endif
char username[NAMELEN];
unsigned int club_read_rights[MAXCLUB >> 5];
unsigned int club_write_rights[MAXCLUB >> 5];
unsigned char md5passwd[MD5PASSLEN];
unsigned userlevel;
time_t lastlogin;
time_t stay;
int signature;
unsigned int userdefine;
time_t notedate;
int noteline;
int notemode;
time_t exittime;
/*
* 生日数据转移到 userdata 结构中
*/
unsigned int usedspace; /* used space of user's mailbox, in bytes */
#ifdef HAVE_USERMONEY
int money;
int score;
char unused[20];
#endif
};
struct boardheader { /* This structure is used to hold data in */
char filename[STRLEN]; /* the BOARDS files */
char BM[BM_LEN];
char title[STRLEN];
unsigned level;
unsigned int nowid;
unsigned int clubnum; /*如果是俱乐部,这个是俱乐部序号 */
unsigned int flag;
union {
unsigned int adv_club; /* 用于指定club对应关系,0表示没有,1表示序号 */
unsigned int group_total; /*如果是二级目录,应该是目录的版面总数 */
} board_data;
time_t createtime;
int toptitle;
char ann_path[128];
int group; /*所属目录 */
char des[196]; /*版面描述,用于www的版面说明和search */
};
【 在 wisi (誓心) 的大作中提到: 】
: 把你原先的struct.h里面相关的东东贴一下看看
--
FROM 219.224.186.148