diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-21 12:28:13 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-02-21 12:28:13 +0800 |
commit | 95262b83a086058fc778fff20ac9c7ee76575494 (patch) | |
tree | b929c12848a55b8b43e18f831f8edae8fe404104 /mbbsd/admin.c | |
parent | 02564e544003312cbcde9b3f2db8c6f6381ecbd8 (diff) | |
download | pttbbs-95262b83a086058fc778fff20ac9c7ee76575494.tar pttbbs-95262b83a086058fc778fff20ac9c7ee76575494.tar.gz pttbbs-95262b83a086058fc778fff20ac9c7ee76575494.tar.bz2 pttbbs-95262b83a086058fc778fff20ac9c7ee76575494.tar.lz pttbbs-95262b83a086058fc778fff20ac9c7ee76575494.tar.xz pttbbs-95262b83a086058fc778fff20ac9c7ee76575494.tar.zst pttbbs-95262b83a086058fc778fff20ac9c7ee76575494.zip |
- talk: comment on mail_check
- cache: better def-style on aggchk
- admin: enable showing regform counter
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3933 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 68ff5cce..2c9c6475 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -1173,7 +1173,7 @@ scan_register_form(const char *regfile, int automode) char fdata[6][STRLEN]; char fname[STRLEN], buf[STRLEN]; char ans[4], *ptr, *uid; - int n = 0, unum = 0; + int n = 0, unum = 0, tid = 0; int nSelf = 0, nAuto = 0; uid = cuser.userid; @@ -1204,6 +1204,7 @@ scan_register_form(const char *regfile, int automode) } } } while( fgets(genbuf, STRLEN, fn) ); + tid ++; if ((unum = getuser(fdata[0], &muser)) == 0) { move(2, 0); @@ -1225,8 +1226,8 @@ scan_register_form(const char *regfile, int automode) user_display(&muser, 1); move(14, 0); prints(ANSI_COLOR(1;32) "------------- " - "請站長嚴格審核使用者資料" - "---------------" ANSI_RESET "\n"); + "請站長嚴格審核使用者資料,這是第 %d 份" + "------------" ANSI_RESET "\n", tid); prints(" %-12s: %s\n", finfo[0], fdata[0]); #ifdef FOREIGN_REG prints("0.%-12s: %s%s\n", finfo[1], fdata[1], @@ -1308,6 +1309,7 @@ scan_register_form(const char *regfile, int automode) mhdr.filemode = 0; sethomedir(title, muser.userid); if (append_record(title, &mhdr, sizeof(mhdr)) != -1) { + char rejfn[PATHLEN]; fp = fopen(buf1, "w"); for(i = 0; buf[i] && i < sizeof(buf); i++){ @@ -1319,6 +1321,10 @@ scan_register_form(const char *regfile, int automode) } fclose(fp); + + // build reject file + setuserfile(rejfn, "justify.reject"); + Copy(buf1, rejfn); } if ((fout = fopen(logfile, "a"))) { for (n = 0; field[n]; n++) |