summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
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/admin.c
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/admin.c')
-rw-r--r--mbbsd/admin.c11
1 files changed, 9 insertions, 2 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));