diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-11-07 01:42:48 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2010-11-07 01:42:48 +0800 |
commit | fac0f8f0c23b5cf8448970970adbba33ffdab6e4 (patch) | |
tree | 4e25a2f4a693f3957b6db1b3d9b130f7b59935db | |
parent | 4bf2055cda968961e4d24ae7fd624b24b587bf79 (diff) | |
download | pttbbs-fac0f8f0c23b5cf8448970970adbba33ffdab6e4.tar pttbbs-fac0f8f0c23b5cf8448970970adbba33ffdab6e4.tar.gz pttbbs-fac0f8f0c23b5cf8448970970adbba33ffdab6e4.tar.bz2 pttbbs-fac0f8f0c23b5cf8448970970adbba33ffdab6e4.tar.lz pttbbs-fac0f8f0c23b5cf8448970970adbba33ffdab6e4.tar.xz pttbbs-fac0f8f0c23b5cf8448970970adbba33ffdab6e4.tar.zst pttbbs-fac0f8f0c23b5cf8448970970adbba33ffdab6e4.zip |
add recent pay for SYSOP to query, and disable the expired board config hints
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5214 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/board.c | 6 | ||||
-rw-r--r-- | pttbbs/mbbsd/menu.c | 35 |
2 files changed, 32 insertions, 9 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c index df709f6d..c2101e4c 100644 --- a/pttbbs/mbbsd/board.c +++ b/pttbbs/mbbsd/board.c @@ -558,12 +558,6 @@ b_config(void) return FULLUPDATE; } -#ifdef NOTIFY_NEW_EDIT_BTITLE - move(b_lines-1, 0); - outs(ANSI_COLOR(1;33) - "▲提醒您修改板標已整入看板設定中,輸入 b 即可修改板標。" - ANSI_RESET); -#endif switch(vans("請輸入要改變的設定, 其它鍵結束: ")) { #ifdef USE_AUTOCPLOG diff --git a/pttbbs/mbbsd/menu.c b/pttbbs/mbbsd/menu.c index ebc6511f..11186e00 100644 --- a/pttbbs/mbbsd/menu.c +++ b/pttbbs/mbbsd/menu.c @@ -545,9 +545,31 @@ domenu(int menu_index, const char *cmdtitle, int cmd, const commands_t cmdtable[ } /* INDENT OFF */ +static int +view_user_money_log() { + char userid[IDLEN+1]; + char fpath[PATHLEN]; + + vs_hdr("檢視使用者交易記錄"); + usercomplete("請輸入要檢視的ID: ", userid); + sethomefile(fpath, userid, FN_RECENTPAY); + if (more(fpath, YEA) < 0) + vmsgf("使用者 %s 無最近交易記錄", userid); + return 0; +} + +static int x_admin_money(void); + // ----------------------------------------------------------- MENU DEFINITION // 注意每個 menu 最多不能同時顯示超過 11 項 (80x24 標準大小的限制) +static const commands_t m_admin_money[] = { + {view_user_money_log, PERM_SYSOP|PERM_VIEWSYSOP, + "VView Log 檢視交易記錄"}, + {give_money, PERM_SYSOP|PERM_VIEWSYSOP, "GGivemoney 紅包雞"}, + {NULL, 0, NULL} +}; + /* administrator's maintain menu */ static const commands_t adminlist[] = { {m_user, PERM_SYSOP, "UUser 使用者資料"}, @@ -560,10 +582,10 @@ static const commands_t adminlist[] = { PERM_ACCOUNTS|PERM_ACCTREG, "RRegister 審核註冊表單"}, {x_file, PERM_SYSOP|PERM_VIEWSYSOP, "XXfile 編輯系統檔案"}, - {give_money, - PERM_SYSOP|PERM_VIEWSYSOP, "GGivemoney 紅包雞"}, + {x_admin_money, PERM_SYSOP|PERM_VIEWSYSOP, + "MMoney " MONEYNAME "幣相關"}, {u_list, PERM_SYSOP, "UUsers 列出註冊名單"}, - {m_loginmsg, PERM_SYSOP, "MMessage Login 進站水球"}, + {m_loginmsg, PERM_SYSOP, "LLMessage Login 進站水球"}, {NULL, 0, NULL} }; @@ -726,6 +748,13 @@ x_agreement(void) } #endif +static int +x_admin_money(void) +{ + domenu(M_XMENU, "金錢相關管理", 'V', m_admin_money); + return 0; +} + #ifdef HAVE_INFO static int x_program(void) |