diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 04:14:20 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 04:14:20 +0800 |
commit | b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67 (patch) | |
tree | f56efde1e7cab917738b51472fc83df42c2cbf69 /mbbsd/admin.c | |
parent | 8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c (diff) | |
download | pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.gz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.bz2 pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.lz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.xz pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.tar.zst pttbbs-b282f3c6dca2a15ef4da7ee6c1f970e5ae926b67.zip |
reoragnize functions
mprints, pprints -> mouts
remove useless refresh, pressanykey(), sleep,...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1833 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 53140e27..02bab271 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -134,7 +134,6 @@ search_key_user(char *passwdfile, int mode) fclose(fp1); return 0; } else { - move(b_lines - 1, 0); getdata(0, 0, "目前的 PASSWD 檔沒有此 ID,新增嗎?[y/N]", genbuf, 3, LCECHO); @@ -955,15 +954,13 @@ scan_register_form(char *regfile, int automode, int neednum) prints("%d.%-12s:%s\n", n - 2, finfo[n], fdata[n]); } if (muser.userlevel & PERM_LOGINOK) { - getdata(b_lines - 1, 0, "\033[1;32m此帳號已經完成註冊, " - "更新(Y/N/Skip)?\033[m[N] ", ans, sizeof(ans), LCECHO); + ans[0]=getans("此帳號已經完成註冊, " + "更新(Y/N/Skip)?[N] "); if (ans[0] != 'y' && ans[0] != 's') ans[0] = 'd'; } else { - move(b_lines - 1, 0); - prints("是否接受此資料(Y/N/Q/Del/Skip)?[S] "); if (search_ulist(unum) == NULL) - ans[0] = igetch(); + ans[0] = getans("是否接受此資料(Y/N/Q/Del/Skip)?[S] "); else ans[0] = 's'; if ('A' <= ans[0] && ans[0] <= 'Z') @@ -1161,10 +1158,9 @@ cat_register() { if (system("cat register.new.tmp >> register.new") == 0 && system("rm -f register.new.tmp") == 0) - mprints(22, 0, "OK 嚕~~ 繼續去奮鬥吧!!"); + vmsg(22, 0, "OK 嚕~~ 繼續去奮鬥吧!!"); else - mprints(22, 0, "沒辦法CAT過去呢 去檢查一下系統吧!!"); - pressanykey(); + vmsg(22, 0, "沒辦法CAT過去呢 去檢查一下系統吧!!"); return 0; } |