summaryrefslogtreecommitdiffstats
path: root/upgrade
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-28 14:40:40 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-28 14:40:40 +0800
commit65d4bcd2a27f0ad51345695cad2a0636f45718cb (patch)
treee182f4e1334a0f4b058811c130a0a1ae4ec24188 /upgrade
parentc17b1ec0c4c66cbe2761fa0e8c83831e6258d11d (diff)
downloadpttbbs-65d4bcd2a27f0ad51345695cad2a0636f45718cb.tar
pttbbs-65d4bcd2a27f0ad51345695cad2a0636f45718cb.tar.gz
pttbbs-65d4bcd2a27f0ad51345695cad2a0636f45718cb.tar.bz2
pttbbs-65d4bcd2a27f0ad51345695cad2a0636f45718cb.tar.lz
pttbbs-65d4bcd2a27f0ad51345695cad2a0636f45718cb.tar.xz
pttbbs-65d4bcd2a27f0ad51345695cad2a0636f45718cb.tar.zst
pttbbs-65d4bcd2a27f0ad51345695cad2a0636f45718cb.zip
- register: (exp) complete testing code for regform 2: now enables testing from user input to whole adm process
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4032 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'upgrade')
-rw-r--r--upgrade/merge_sob.c4
-rw-r--r--upgrade/merge_sob.h73
2 files changed, 75 insertions, 2 deletions
diff --git a/upgrade/merge_sob.c b/upgrade/merge_sob.c
index 40a80822..dd4f0dd0 100644
--- a/upgrade/merge_sob.c
+++ b/upgrade/merge_sob.c
@@ -1,9 +1,9 @@
-/* $Id: merge.c 3650 2007-12-08 02:37:03Z piaip $ */
+/* $Id$ */
#define _XOPEN_SOURCE
#define _ISOC99_SOURCE
/* this is a interface provided when we merge BBS */
#include "bbs.h"
-#include "fpg.h"
+#include "merge_sob.h"
int
m_sob(void)
diff --git a/upgrade/merge_sob.h b/upgrade/merge_sob.h
new file mode 100644
index 00000000..13045dae
--- /dev/null
+++ b/upgrade/merge_sob.h
@@ -0,0 +1,73 @@
+#define STRLEN 80 /* Length of most string data */
+#define BRC_STRLEN 15 /* Length of boardname */
+#define BTLEN 48 /* Length of board title */
+#define NAMELEN 40 /* Length of username/realname */
+//#define FNLEN 33 /* Length of filename */
+// /* XXX Ptt 說這裡有bug*/
+#define IDLEN 12 /* Length of bid/uid */
+#define PASSLEN 14 /* Length of encrypted passwd field */
+#define REGLEN 38 /* Length of registration data */
+
+
+
+typedef unsigned char uschar; /* length = 1 */
+typedef unsigned short ushort; /* length = 2 */
+typedef unsigned long uslong; /* length = 4 */
+typedef unsigned int usint; /* length = 4 */
+
+/* ----------------------------------------------------- */
+/* .PASSWDS struct : 512 bytes */
+/* ----------------------------------------------------- */
+struct sobuserec
+{
+ char userid[IDLEN + 1]; /* 使用者名稱 13 bytes */
+ char realname[20]; /* 真實姓名 20 bytes */
+ char username[24]; /* 暱稱 24 bytes */
+ char passwd[PASSLEN]; /* 密碼 14 bytes */
+ uschar uflag; /* 使用者選項 1 byte */
+ usint userlevel; /* 使用者權限 4 bytes */
+ ushort numlogins; /* 上站次數 2 bytes */
+ ushort numposts; /* POST次數 2 bytes */
+ time4_t firstlogin; /* 註冊時間 4 bytes */
+ time4_t lastlogin; /* 前次上站 4 bytes */
+ char lasthost[24]; /* 上站地點 24 bytes */
+ char vhost[24]; /* 虛擬網址 24 bytes */
+ char email[50]; /* E-MAIL 50 bytes */
+ char address[50]; /* 地址 50 bytes */
+ char justify[REGLEN + 1]; /* 註冊資料 39 bytes */
+ uschar month; /* 出生月份 1 byte */
+ uschar day; /* 出生日期 1 byte */
+ uschar year; /* 出生年份 1 byte */
+ uschar sex; /* 性別 1 byte */
+ uschar state; /* 狀態?? 1 byte */
+ usint habit; /* 喜好設定 4 bytes */
+ uschar pager; /* 心情顏色 1 bytes */
+ uschar invisible; /* 隱身模式 1 bytes */
+ usint exmailbox; /* 信箱封數 4 bytes */
+ usint exmailboxk; /* 信箱K數 4 bytes */
+ usint toquery; /* 好奇度 4 bytes */
+ usint bequery; /* 人氣度 4 bytes */
+ char toqid[IDLEN + 1]; /* 前次查誰 13 bytes */
+ char beqid[IDLEN + 1]; /* 前次被誰查 13 bytes */
+ uslong totaltime; /* 上線總時數 8 bytes */
+ usint sendmsg; /* 發訊息次數 4 bytes */
+ usint receivemsg; /* 收訊息次數 4 bytes */
+ usint goldmoney; /* 風塵金幣 8 bytes */
+ usint silvermoney; /* 銀幣 8 bytes */
+ usint exp; /* 經驗值 8 bytes */
+ time4_t dtime; /* 存款時間 4 bytes */
+ int scoretimes; /* 評分次數 4 bytes */
+ uschar rtimes; /* 填註冊單次數 1 bytes */
+ int award; /* 獎懲判斷 4 bytes */
+ int pagermode; /* 呼叫器門號 4 bytes */
+ char pagernum[7]; /* 呼叫器號碼 7 bytes */
+ char feeling[5]; /* 心情指數 5 bytes */
+ char title[20]; /* 稱謂(封號) 20 bytes */
+ usint five_win;
+ usint five_lost;
+ usint five_draw;
+ char pad[91]; /* 空著填滿至512用 */
+};
+
+typedef struct sobuserec sobuserec;
+