summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-27 20:33:13 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-27 20:33:13 +0800
commitfaaddb42006b9733537555c2852f629deaa1401d (patch)
treec057f846c11c68ec28f0890fda91e2f9dcc45a6e
parent76f9d9fac2cfa43c7d819e147440987fa77e923a (diff)
downloadpttbbs-faaddb42006b9733537555c2852f629deaa1401d.tar
pttbbs-faaddb42006b9733537555c2852f629deaa1401d.tar.gz
pttbbs-faaddb42006b9733537555c2852f629deaa1401d.tar.bz2
pttbbs-faaddb42006b9733537555c2852f629deaa1401d.tar.lz
pttbbs-faaddb42006b9733537555c2852f629deaa1401d.tar.xz
pttbbs-faaddb42006b9733537555c2852f629deaa1401d.tar.zst
pttbbs-faaddb42006b9733537555c2852f629deaa1401d.zip
1.特殊搜尋使用者裡
請輸入使用者關鍵字[電話|地址|姓名|上站地點|email|小雞id] 可否加上身分證字號? 2.退註冊後重註 填完x後資料就會送過來 被退的人無法更新資料 我們又不見得有時間馬上去退掉 常常被罵好玩的啊XD 3.連署看板時 申請原因一欄沒有標題說明 常常有人因此重新連署@@ git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1437 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c12
-rw-r--r--mbbsd/user.c5
-rw-r--r--mbbsd/voteboard.c5
3 files changed, 12 insertions, 10 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index b1553f3c..03199d5f 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -39,7 +39,7 @@ search_key_user(char *passwdfile, int mode)
assert(fp1);
clear();
- getdata(0, 0, mode ? "пJϥΪr[q|a}|mW|WaI|"
+ getdata(0, 0, mode ? "пJϥΪr[q|a}|mW||WaI|"
"email|pid] :" : "пJid :", key, sizeof(key), DOECHO);
if(!key[0])
return 0;
@@ -52,8 +52,7 @@ search_key_user(char *passwdfile, int mode)
keymatch = NULL;
if (!strcasecmp(user.userid, key))
keymatch = user.userid;
- else if(mode)
- {
+ else if(mode) {
if(strstr(user.realname, key))
keymatch = user.realname;
else if(strstr(user.username, key))
@@ -68,9 +67,10 @@ search_key_user(char *passwdfile, int mode)
keymatch = user.justify;
else if(strstr(user.mychicken.name, key))
keymatch = user.mychicken.name;
- }
- if(keymatch)
- {
+ else if(strstr(user.ident, key))
+ keymatch = user.ident;
+ }
+ if(keymatch) {
move(1, 0);
prints(" [%d] \n", coun);
refresh();
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 3554103f..bd88b1f4 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1249,9 +1249,10 @@ u_register(void)
} else if (strcmp(inregcode, "x") != 0 && strcmp(inregcode, "X") != 0) {
outs("{ҽX~\n");
pressanykey();
+ } else {
+ toregister(email, genbuf, phone, career, ident, rname, addr, mobile);
+ return FULLUPDATE;
}
- toregister(email, genbuf, phone, career, ident, rname, addr, mobile);
- return FULLUPDATE;
}
getdata(b_lines - 1, 0, "zTwngU(Y/N)H[N] ",
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c
index 897f68f9..2556942e 100644
--- a/mbbsd/voteboard.c
+++ b/mbbsd/voteboard.c
@@ -80,8 +80,9 @@ do_voteboardreply(fileheader_t * fhdr)
return;
}
} while (opnion[0] != 'y' && opnion[0] != 'n');
- if (!getdata_buf(20, 0, "аݱzPoijDYγspzѬG",
- reason, 35, DOECHO)) {
+ sprintf(genbuf, "аݱzPoijDY%szѬG",
+ opnion[0] == 'y' ? "" : "Ϲ");
+ if (!getdata_buf(20, 0, genbuf, reason, 35, DOECHO)) {
return;
}
if ((fd = open(oldfpath, O_RDONLY)) == -1)