From 153463feb32a59943cfdb031be1a73979edd1029 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 3 Jul 2005 12:52:12 +0000 Subject: remove user info display message when logout git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2883 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/xyz.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mbbsd/xyz.c b/mbbsd/xyz.c index 490febd8..cdb16c3c 100644 --- a/mbbsd/xyz.c +++ b/mbbsd/xyz.c @@ -357,14 +357,25 @@ Goodbye(void) note(); } clear(); + + /* why do we show user info in logout? + * no reason and it has security problem. + */ +#ifdef LOW_SECURITY prints(ANSI_COLOR(1;36) "親愛的 " ANSI_COLOR(33) "%s(%s)" ANSI_COLOR(36) ",別忘了再度光臨" ANSI_COLOR(45;33) "" " %s " ANSI_COLOR(40;36) "!\n以下是您在站內的註冊資料:" ANSI_COLOR(0) "\n", cuser.userid, cuser.username, BBSName); user_display(&cuser, 0); pressanykey(); +#endif more("etc/Logout", NA); - pressanykey(); + + if(!(cuser.userlevel & PERM_LOGINOK)) + vmsg("尚未完成註冊。如要提昇權限請參考本站公佈欄辦理註冊"); + else + pressanykey(); + u_exit("EXIT "); return QUIT; } -- cgit v1.2.3