summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-09 15:44:48 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-09 15:44:48 +0800
commit5da31363b72ee7074a281ea7b216e470124a32bf (patch)
tree2d56d0e92eb376043b1d3ab5f2dbfeed8132fae4 /mbbsd/admin.c
parent12dac5d34534f1cf3f507ccde8b8a8f495ece4e4 (diff)
downloadpttbbs-5da31363b72ee7074a281ea7b216e470124a32bf.tar
pttbbs-5da31363b72ee7074a281ea7b216e470124a32bf.tar.gz
pttbbs-5da31363b72ee7074a281ea7b216e470124a32bf.tar.bz2
pttbbs-5da31363b72ee7074a281ea7b216e470124a32bf.tar.lz
pttbbs-5da31363b72ee7074a281ea7b216e470124a32bf.tar.xz
pttbbs-5da31363b72ee7074a281ea7b216e470124a32bf.tar.zst
pttbbs-5da31363b72ee7074a281ea7b216e470124a32bf.zip
foreigner identification
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@828 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index dc792e47..4b87f98a 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1,4 +1,4 @@
-/* $Id: admin.c,v 1.32 2003/05/07 08:14:21 bbs Exp $ */
+/* $Id: admin.c,v 1.33 2003/05/09 07:43:57 victor Exp $ */
#include "bbs.h"
/* 使用者管理 */
@@ -413,16 +413,18 @@ x_file()
int aborted;
char ans[4], *fpath;
- move(b_lines - 4, 0);
+ move(b_lines - 6, 0);
/* Ptt */
outs("設定 (1)身份確認信 (4)post注意事項 (5)錯誤登入訊息 (6)註冊範例 (7)通過確認通知\n");
outs(" (8)email post通知 (9)系統功\能精靈 (A)茶樓 (B)站長名單 (C)email通過確認\n");
- outs(" (D)新使用者需知 (E)身份確認方法 (F)歡迎畫面 (G)進站畫面 "
+ outs(" (D)新使用者需知 (E)身份確認方法 (F)歡迎畫面 (G)進站畫面"
#ifdef MULTI_WELCOME_LOGIN
"(X)刪除進站畫面"
#endif
"\n");
- getdata(b_lines - 1, 0, " (H)看板期限 (I)故鄉 (J)出站畫面 (K)生日卡 (L)節日 [Q]取消?", ans, sizeof(ans), LCECHO);
+ outs(" (H)看板期限 (I)故鄉 (J)出站畫面 (K)生日卡 (L)節日 (M)外籍使用者認證通知\n");
+ outs(" (N)外籍使用者過期警告通知\n");
+ getdata(b_lines - 1, 0, "[Q]取消[1-9 A-N]?", ans, sizeof(ans), LCECHO);
switch (ans[0]) {
case '1':
@@ -521,6 +523,12 @@ x_file()
case 'l':
fpath = "etc/feast";
break;
+ case 'm':
+ fpath = "etc/foreign_expired";
+ break;
+ case 'n':
+ fpath = "etc/foreign_expired_warn";
+ break;
default:
return FULLUPDATE;
}
@@ -754,6 +762,7 @@ scan_register_form(char *regfile, int automode, int neednum)
char fdata[7][STRLEN];
char fname[STRLEN], buf[STRLEN];
char ans[4], *ptr, *uid;
+ char foreign;
int n = 0, unum = 0;
int nSelf = 0, nAuto = 0;