summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-03 20:52:12 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-07-03 20:52:12 +0800
commit153463feb32a59943cfdb031be1a73979edd1029 (patch)
tree27730cdbe8afda16ced2cec75006143d7c8d3415
parent43d7446bb8b43450cbfcee6adce187c0d6b284c3 (diff)
downloadpttbbs-153463feb32a59943cfdb031be1a73979edd1029.tar
pttbbs-153463feb32a59943cfdb031be1a73979edd1029.tar.gz
pttbbs-153463feb32a59943cfdb031be1a73979edd1029.tar.bz2
pttbbs-153463feb32a59943cfdb031be1a73979edd1029.tar.lz
pttbbs-153463feb32a59943cfdb031be1a73979edd1029.tar.xz
pttbbs-153463feb32a59943cfdb031be1a73979edd1029.tar.zst
pttbbs-153463feb32a59943cfdb031be1a73979edd1029.zip
remove user info display message when logout
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2883 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/xyz.c13
1 files changed, 12 insertions, 1 deletions
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;
}