From 6b2f2f3e275322f0cfeccf57d35350edae0de6a0 Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 29 Aug 2009 14:31:57 +0000 Subject: * (pwcu branch) remove the 'goodpost' ~ I love this commit. git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4791 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/menu.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'mbbsd/menu.c') diff --git a/mbbsd/menu.c b/mbbsd/menu.c index bd598cea..fdba2381 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -585,7 +585,6 @@ u_myfiles() } -int u_fixgoodpost(void); // assess.c void Customize(); // user.c static int @@ -611,7 +610,6 @@ static const commands_t userlist[] = { {u_register, MENU_UNREGONLY, "RRegister 填寫《註冊申請單》"}, #ifdef ASSESS {u_cancelbadpost,PERM_LOGINOK, "BBye BadPost 申請刪除劣文"}, - {u_fixgoodpost, PERM_LOGINOK, "FFix GoodPost 修復優文"}, #endif // ASSESS {NULL, 0, NULL} }; -- cgit v1.2.3 From 12fe18273839304131da83bbb54a639896fd69f0 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 6 Sep 2009 13:07:50 +0000 Subject: * experimental: add user recent login history view git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4810 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/menu.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'mbbsd/menu.c') diff --git a/mbbsd/menu.c b/mbbsd/menu.c index fdba2381..fbffa4da 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -570,6 +570,12 @@ static const commands_t namelist[] = { {NULL, 0, NULL} }; +static int u_view_recentlogin() +{ + char fn[PATHLEN]; + setuserfile(fn, FN_RECENTLOGIN); + return more(fn, YEA); +} static const commands_t myfilelist[] = { {u_editplan, PERM_LOGINOK, "QQueryEdit 編輯名片檔"}, @@ -577,6 +583,11 @@ static const commands_t myfilelist[] = { {NULL, 0, NULL} }; +static const commands_t myuserlog[] = { + {u_view_recentlogin, 0, "LLRecent Login 最近上站記錄"}, + {NULL, 0, NULL} +}; + static int u_myfiles() { @@ -584,6 +595,13 @@ u_myfiles() return 0; } +static int +u_mylogs() +{ + domenu(M_UMENU, "個人記錄", 'L', myuserlog); + return 0; +} + void Customize(); // user.c @@ -600,8 +618,9 @@ static const commands_t userlist[] = { {u_customize, PERM_BASIC, "UUCustomize 個人化設定"}, {u_info, PERM_LOGINOK, "IInfo 設定個人資料與密碼"}, {calendar, PERM_LOGINOK, "CCalendar 行事曆"}, - {u_loginview, PERM_BASIC, "LLogin View 選擇進站畫面"}, + {u_loginview, PERM_BASIC, "VVLogin View 選擇進站畫面"}, {u_myfiles, PERM_LOGINOK, "MMy Files 【個人檔案】 (名片,簽名檔...)"}, + {u_mylogs, PERM_LOGINOK, "LLMy Logs 【個人記錄】 (最近上線...)"}, #if HAVE_FREECLOAK {u_cloak, PERM_LOGINOK, "KKCloak 隱身術"}, #else -- cgit v1.2.3