summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-07 10:11:19 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-07 10:11:19 +0800
commitd4d7b4113cf03c906f9d408526b0dee082adde53 (patch)
tree578ce1513299e5ab7abb764d1917ca0f746c0282 /include
parente2a6b4b4502bd8926777c9b17747e65528422464 (diff)
downloadpttbbs-d4d7b4113cf03c906f9d408526b0dee082adde53.tar
pttbbs-d4d7b4113cf03c906f9d408526b0dee082adde53.tar.gz
pttbbs-d4d7b4113cf03c906f9d408526b0dee082adde53.tar.bz2
pttbbs-d4d7b4113cf03c906f9d408526b0dee082adde53.tar.lz
pttbbs-d4d7b4113cf03c906f9d408526b0dee082adde53.tar.xz
pttbbs-d4d7b4113cf03c906f9d408526b0dee082adde53.tar.zst
pttbbs-d4d7b4113cf03c906f9d408526b0dee082adde53.zip
* allow query old login number (for self only)
* merge latest git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4816 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/common.h2
-rw-r--r--include/pttstruct.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h
index 59316fb3..d5400070 100644
--- a/include/common.h
+++ b/include/common.h
@@ -45,7 +45,7 @@
#define FN_BADLOGIN "logins.bad" // in BBSHOME & user directory
#define FN_RECENTLOGIN "logins.recent" // in user directory
#ifndef SZ_RECENTLOGIN
-#define SZ_RECENTLOGIN (32000)
+#define SZ_RECENTLOGIN (16000) // size of max recent log before rotation
#endif
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 2e130628..deae733a 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -95,7 +95,8 @@ typedef struct userec_t {
char career[40]; /* 學歷職業 */
char phone[20]; /* 電話 */
- char chkpad1[52];
+ uint32_t old_numlogins; /* 轉換前的 numlogins, 備份檢視用 */
+ char chkpad1[48];
time4_t lastseen; /* 最近上站時間(隱身不計) */
time4_t chkpad2[2]; /* in case 有人忘了把 time4_t 調好... */
// 以上應為 sizeof(chicken_t) 同等大小