精華區beta PttNewhand 關於我們 聯絡資訊
2014/02/16 定期更新 1. [看板] 設定冷靜(J)與編輯進板畫面(W) 移入看板管理(i->j, i->p)。 安全性更新 1. [聊天] 由於有潛在性的漏洞,無限期移除「心情」,同時將"通緝"改為紅色「違規」 > -------------------------------------------------------------------------- < 作者: HWBA (╭☆微風★╯) 看板: (某隱形看板) 標題: [Ptt Code] pttstruct.h @5394 時間: Sun Feb 16 23:33:42 2014 trunk/pttbbs/include/pttstruct.h #define PASS_INPUT_LEN 8 /* Length of valid input password length. 50 For DES, set to 8. */ 51 #define PASSLEN 14 /* Length of encrypted passwd fiel 52 #define REGLEN 38 /* Length of registration data */ 53 54 #define PASSWD_VERSION 4194 55 56 typedef struct userec_t { 57 uint32_t version; /* version number of this sturcture, 58 * use revision number of project to 59 60 char userid[IDLEN+1];/* 使用者ID */ 61 char realname[20]; /* 真實姓名 */ 62 char nickname[24]; /* 暱稱 */ 63 char passwd[PASSLEN];/* 密碼 */ 64 char pad_1; 65 66 uint32_t uflag; /* 習慣, see uflags.h */ 67 uint32_t _unused1; /* 從前放習慣2, 使用前請先清0 */ 68 uint32_t userlevel; /* 權限 */ 69 uint32_t numlogindays; /* 上線資歷 (每日最多+1的登入次數) */ 70 uint32_t numposts; /* 文章篇數 */ 71 time4_t firstlogin; /* 註冊時間 */ 72 time4_t lastlogin; /* 最近上站時間(包含隱身) */ 73 char lasthost[IPV4LEN+1];/* 上次上站來源 */ 74 int32_t money; /* Ptt幣 */ 75 char _unused[4]; 76 77 char email[50]; /* Email */ 78 char address[50]; /* 住址 */ 79 char justify[REGLEN+1];/* 審核資料 */ 80 uint8_t _unused_birth[3]; /* 生日 月日年 */ 81 uint8_t over_18; /* 是否已滿18歲 */ 82 uint8_t pager_ui_type; /* 呼叫器界面類別 (was: WATER_*) */ 83 uint8_t pager; /* 呼叫器狀態 */ 84 uint8_t invisible; /* 隱形狀態 */ 85 char _unused4[2]; 86 uint32_t exmailbox; /* 購買信箱數 */ 87 88 // r3968 移出 sizeof(chicken_t)=128 bytes 89 char _unused5[4]; 90 char career[40]; /* 學歷職業 */ 91 char phone[20]; /* 電話 */ 92 uint32_t _unused6; /* 從前放轉換前的 numlogins 93 char chkpad1[44]; 94 uint32_t role; /* Role-specific permissions */ 95 time4_t lastseen; /* 最近上站時間(隱身不計) */ 96 time4_t timesetangel; /* 上次得到天使時間 */ 97 time4_t timeplayangel; /* 上次與天使互動時間 (by day) */ 98 // 以上應為 sizeof(chicken_t) 同等大小 99 100 time4_t lastsong; /* 上次點歌時間 */ 101 uint32_t loginview; /* 進站畫面 */ 102 uint8_t _unused8; // was: channel 103 uint8_t pad_2; 104 105 uint16_t vl_count; /* 違法記錄 ViolateLaw counter */ 106 uint16_t five_win; /* 五子棋戰績 勝 */ 107 uint16_t five_lose; /* 五子棋戰績 敗 */ 108 uint16_t five_tie; /* 五子棋戰績 和 */ 109 uint16_t chc_win; /* 象棋戰績 勝 */ 110 uint16_t chc_lose; /* 象棋戰績 敗 */ 111 uint16_t chc_tie; /* 象棋戰績 和 */ 112 uint32_t _unused11; /* 舊手機號碼 */ 113 char mind[4]; /* 心情 XXX not a null-terminate str 114 uint16_t go_win; /* 圍棋戰績 勝 */ 115 uint16_t go_lose; /* 圍棋戰績 敗 */ 116 uint16_t go_tie; /* 圍棋戰績 和 */ 117 uint16_t dark_win; /* 暗棋戰績 勝 */ 118 uint16_t dark_lose; /* 暗棋戰績 敗 */ 119 uint8_t _unused9; /* 從前放 ident 身份證字號 120 121 uint8_t signature; /* 慣用簽名檔 */ 122 uint8_t _unused10; /* 從前放好文章數, 使用前請先清0 */ 123 uint8_t badpost; /* 評價為壞文章數 */ 124 uint16_t dark_tie; /* 暗棋戰績 和 */ 125 char myangel[IDLEN+1];/* 我的小天使 */ 126 char pad_3; 127 128 uint16_t chess_elo_rating;/* 象棋等級分 */ 129 uint32_t withme; /* 我想找人下棋,聊天.... */ 130 time4_t timeremovebadpost;/* 上次刪除劣文時間 */ 131 time4_t timeviolatelaw; /* 被開罰單時間 */ 132 133 char pad_tail[28]; 134 } PACKSTRUCT userec_t;