summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-10 12:51:47 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-10 12:51:47 +0800
commit3a13adbea9793d58c961c3fc869fd1f79fdedad3 (patch)
tree8701824511c63389d05e7fcd4be9ad1223bf419f /mbbsd
parent2066b6c7961fd2bde77c6c172fa69764c649c2cc (diff)
downloadpttbbs-3a13adbea9793d58c961c3fc869fd1f79fdedad3.tar
pttbbs-3a13adbea9793d58c961c3fc869fd1f79fdedad3.tar.gz
pttbbs-3a13adbea9793d58c961c3fc869fd1f79fdedad3.tar.bz2
pttbbs-3a13adbea9793d58c961c3fc869fd1f79fdedad3.tar.lz
pttbbs-3a13adbea9793d58c961c3fc869fd1f79fdedad3.tar.xz
pttbbs-3a13adbea9793d58c961c3fc869fd1f79fdedad3.tar.zst
pttbbs-3a13adbea9793d58c961c3fc869fd1f79fdedad3.zip
update reg queue id
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3150 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/admin.c11
-rw-r--r--mbbsd/user.c44
2 files changed, 34 insertions, 21 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 4abf11f1..b4221b75 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1070,7 +1070,7 @@ scan_register_form(const char *regfile, int automode, int neednum)
"輸入真實姓名",
"詳填「(畢業)學校及『系』『級』」或「服務單位(含所屬縣市及職稱)」",
"填寫完整的住址資料 (含縣市名稱, 台北市請含行政區域)",
- "詳填連絡電話 (含區域碼, 中間不用加 \"-\", \"(\", \")\"等符號",
+ "詳填連絡電話 (含區域碼, 中間不用加 '-', '(', ')'等符號",
"確實填寫註冊申請表",
"用中文填寫申請單",
NULL
@@ -1102,7 +1102,8 @@ scan_register_form(const char *regfile, int automode, int neednum)
move(1, 0);
clrtobot();
prints("各位具有站長權限的人,註冊單累積超過一百份了,麻煩您幫忙審 %d 份\n", neednum);
- outs("也就是大概二十分之一的數量,當然,您也可以多審\n沒審完之前,系統不會讓你跳出喲!謝謝");
+ outs("也就是大概二十分之一的數量,當然,您也可以多審\n"
+ "沒審完之前,系統不會讓你跳出喲!謝謝");
pressanykey();
}
while( fgets(genbuf, STRLEN, fn) ){
@@ -1180,6 +1181,7 @@ scan_register_form(const char *regfile, int automode, int neednum)
nSelf++;
} else
nAuto++;
+
if (neednum > 0 && ans[0] == 'q') {
move(2, 0);
clrtobot();
@@ -1254,6 +1256,8 @@ scan_register_form(const char *regfile, int automode, int neednum)
move(10, 0);
clrtobot();
outs("取消退回此註冊申請表");
+ /* no break? */
+
case 's':
if ((freg = fopen(regfile, "a"))) {
for (n = 0; field[n]; n++)
@@ -1262,13 +1266,16 @@ scan_register_form(const char *regfile, int automode, int neednum)
fclose(freg);
}
break;
+
default:
outs("以下使用者資料已經更新:\n");
mail_muser(muser, "[註冊成功\囉]", "etc/registered");
+
#if FOREIGN_REG_DAY > 0
if(muser.uflag2 & FOREIGN)
mail_muser(muser, "[出入境管理局]", "etc/foreign_welcome");
#endif
+
muser.userlevel |= (PERM_LOGINOK | PERM_POST);
strlcpy(muser.realname, fdata[2], sizeof(muser.realname));
strlcpy(muser.address, fdata[4], sizeof(muser.address));
diff --git a/mbbsd/user.c b/mbbsd/user.c
index d256f07b..e64a0f4a 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1488,27 +1488,33 @@ u_register(void)
if ((fn = fopen(fn_register, "r"))) {
int i =0;
while (fgets(genbuf, STRLEN, fn)) {
- i++;
if ((ptr = strchr(genbuf, '\n')))
*ptr = '\0';
- if (strncmp(genbuf, "uid: ", 5) == 0 &&
- strcmp(genbuf + 5, cuser.userid) == 0) {
- fclose(fn);
- {
- /* idiots complain about this, so bug them */
- clear();
- move(3, 0);
- prints(" 您的註冊申請單尚在處理中(處理順位: %d),請耐心等候\n\n", i);
- outs(" 如果您已收到註冊碼卻看到這個畫面,那代表您在使用 Email 註冊後\n");
- outs(" " ANSI_COLOR(1;31) "又另外申請了站長直接人工審核的註冊申請單。"
- ANSI_RESET "\n\n");
- // outs("該死,都不看說明的...\n");
- outs(" 進入人工審核程序後 Email 註冊自動失效,有註冊碼也沒用,\n");
- outs(" 要等到審核完成 (會多花很多時間,通常起碼數天) ,所以請耐心等候。\n");
- vmsg("您的註冊申請單尚在處理中");
- }
- return FULLUPDATE;
- }
+ if (strncmp(genbuf, "uid: ", 5) != 0)
+ continue;
+ i++;
+ if(strcmp(genbuf + 5, cuser.userid) != 0)
+ continue;
+ fclose(fn);
+ /* idiots complain about this, so bug them */
+ clear();
+ move(3, 0);
+ prints(" 您的註冊申請單尚在處理中(處理順位: %d),請耐心等候\n\n", i);
+ outs(" 如果您已收到註冊碼卻看到這個畫面,那代表您在使用 Email 註冊後\n");
+ outs(" " ANSI_COLOR(1;31) "又另外申請了站長直接人工審核的註冊申請單。"
+ ANSI_RESET "\n\n");
+ // outs("該死,都不看說明的...\n");
+ outs(" 進入人工審核程序後 Email 註冊自動失效,有註冊碼也沒用,\n");
+ outs(" 要等到審核完成 (會多花很多時間,通常起碼一天) ,所以請耐心等候。\n\n");
+
+ /* 下面是國王的 code 所需要的 message */
+#if 0
+ outs(" 另外請注意,若站長審註冊單時您正在站上則會無法審核、自動跳過。\n");
+ outs(" 所以等候審核時請勿掛站。若超過兩三天仍未被審到,通常就是這個原因。\n");
+#endif
+
+ vmsg("您的註冊申請單尚在處理中");
+ return FULLUPDATE;
}
fclose(fn);
}