summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 16:09:05 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 16:09:05 +0800
commitcb803d875a0cdb6235b8bcdf96d7adce7f24cb3f (patch)
tree647b993665634cf089a9fe51fe1843270e7ac328 /mbbsd
parent9a360cadca87f1c091ecd1502237051be58d1cb7 (diff)
downloadpttbbs-cb803d875a0cdb6235b8bcdf96d7adce7f24cb3f.tar
pttbbs-cb803d875a0cdb6235b8bcdf96d7adce7f24cb3f.tar.gz
pttbbs-cb803d875a0cdb6235b8bcdf96d7adce7f24cb3f.tar.bz2
pttbbs-cb803d875a0cdb6235b8bcdf96d7adce7f24cb3f.tar.lz
pttbbs-cb803d875a0cdb6235b8bcdf96d7adce7f24cb3f.tar.xz
pttbbs-cb803d875a0cdb6235b8bcdf96d7adce7f24cb3f.tar.zst
pttbbs-cb803d875a0cdb6235b8bcdf96d7adce7f24cb3f.zip
- add system updates log in menu
- remove testing code (sorry again...) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4217 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/menu.c57
-rw-r--r--mbbsd/xyz.c18
2 files changed, 31 insertions, 44 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c
index 4e2d3e20..e5d5c276 100644
--- a/mbbsd/menu.c
+++ b/mbbsd/menu.c
@@ -577,6 +577,33 @@ static const commands_t userlist[] = {
{NULL, 0, NULL}
};
+#ifdef HAVE_INFO
+static int
+x_program(void)
+{
+ more("etc/version", YEA);
+ return 0;
+}
+#endif
+
+#ifdef HAVE_LICENSE
+static int
+x_gpl(void)
+{
+ more("etc/GPL", YEA);
+ return 0;
+}
+#endif
+
+#ifdef HAVE_SYSUPDATES
+static int
+x_sys_updates(void)
+{
+ more("etc/sysupdates", YEA);
+ return 0;
+}
+#endif
+
#ifdef DEBUG
int _debug_check_keyinput();
int _debug_reportstruct()
@@ -615,13 +642,15 @@ static const commands_t xyzlist[] = {
{x_today, 0, "TToday 《今日上線人次統計》"},
{x_yesterday, 0, "YYesterday 《昨日上線人次統計》"},
{x_user100 ,0, "UUsers 《使用者百大排行榜》"},
+#ifdef HAVE_SYSUPDATES
+ {x_sys_updates,0,"LLUpdates 《本站系統程式更新紀錄》"},
+#endif
#else
{_debug_check_keyinput, 0,
"MMKeycode 檢查按鍵控制碼工具"},
{_debug_reportstruct, 0,
"RReportStruct 報告各種結構的大小"},
#endif
-
{p_sysinfo, 0, "XXinfo 《查看系統資訊》"},
{NULL, 0, NULL}
};
@@ -716,13 +745,9 @@ static int chessroom() {
static const commands_t plist[] = {
-/* {p_ticket_main, PERM_LOGINOK,"00Pre 【 總統機 】"},
- {alive, PERM_LOGINOK, "00Alive 【 訂票雞 】"},
-*/
{ticket_main, PERM_LOGINOK, "11Gamble 【 " BBSMNAME2 "賭場 】"},
{guess_main, PERM_LOGINOK, "22Guess number【 猜數字 】"},
{othello_main, PERM_LOGINOK, "33Othello 【 黑白棋 】"},
-// {dice_main, PERM_LOGINOK, "44Dice 【 玩骰子 】"},
{vice_main, PERM_LOGINOK, "44Vice 【 發票對獎 】"},
{g_card_jack, PERM_LOGINOK, "55Jack 【 黑傑克 】"},
{g_ten_helf, PERM_LOGINOK, "66Tenhalf 【 十點半 】"},
@@ -735,24 +760,6 @@ static int playground() {
return 0;
}
-static const commands_t slist[] = {
- /*
- // x_dict: useless
- {x_dict,0, "11Dictionary "
- "【" ANSI_COLOR(1;33) " 趣味大字典 " ANSI_RESET "】"},
- */
- {x_mrtmap, 0, "22MRTmap "
- "【" ANSI_COLOR(1;34) " 捷運地圖 " ANSI_RESET "】"},
- {NULL, 0, NULL}
-};
-
-/* // nothing to search...
-static int forsearch() {
- domenu(M_SREG, BBSMNAME2 "搜尋器", '1', slist);
- return 0;
-}
-*/
-
/* main menu */
int
@@ -786,9 +793,7 @@ User(void)
int
Xyz(void)
{
- if (strcmp(cuser.userid, "piaip") == 0)
- x_file();
- else
+ // sorry, 又把測試機上用的 code commit 進去了 XD
domenu(M_XMENU, "工具程式", 'M', xyzlist);
return 0;
}
diff --git a/mbbsd/xyz.c b/mbbsd/xyz.c
index 71783edd..d27d8742 100644
--- a/mbbsd/xyz.c
+++ b/mbbsd/xyz.c
@@ -101,24 +101,6 @@ x_login(void)
return 0;
}
-#ifdef HAVE_INFO
-static int
-x_program(void)
-{
- more("etc/version", YEA);
- return 0;
-}
-#endif
-
-#ifdef HAVE_LICENSE
-static int
-x_gpl(void)
-{
- more("etc/GPL", YEA);
- return 0;
-}
-#endif
-
int
note(void)
{