summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-03-18 10:24:11 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-03-18 10:24:11 +0800
commit7a88c2c391b96bf7f2047df523d1b4623ef92209 (patch)
tree06b0aa1a99b98b6c78a3391b67a39395a2bcd23c
parent4f44472afe5537c06b21bf26ea293fda385abd26 (diff)
downloadpttbbs-7a88c2c391b96bf7f2047df523d1b4623ef92209.tar
pttbbs-7a88c2c391b96bf7f2047df523d1b4623ef92209.tar.gz
pttbbs-7a88c2c391b96bf7f2047df523d1b4623ef92209.tar.bz2
pttbbs-7a88c2c391b96bf7f2047df523d1b4623ef92209.tar.lz
pttbbs-7a88c2c391b96bf7f2047df523d1b4623ef92209.tar.xz
pttbbs-7a88c2c391b96bf7f2047df523d1b4623ef92209.tar.zst
pttbbs-7a88c2c391b96bf7f2047df523d1b4623ef92209.zip
Add user agreement to user menu
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5036 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/menu.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/menu.c b/pttbbs/mbbsd/menu.c
index 226c6f0c..183cf7ed 100644
--- a/pttbbs/mbbsd/menu.c
+++ b/pttbbs/mbbsd/menu.c
@@ -685,6 +685,15 @@ static const commands_t userlist[] = {
{NULL, 0, NULL}
};
+#ifdef HAVE_USERAGREEMENT
+static int
+x_agreement(void)
+{
+ more(HAVE_USERAGREEMENT, YEA);
+ return 0;
+}
+#endif
+
#ifdef HAVE_INFO
static int
x_program(void)
@@ -769,6 +778,9 @@ static const commands_t xyzlist[] = {
{x_users,0, "UUsers 《使用者相關統計》"},
#ifndef DEBUG
/* All these are useless in debug mode. */
+#ifdef HAVE_USERAGREEMENT
+ {x_agreement,0, "AAgreement 《本站使用者條款》"},
+#endif
#ifdef HAVE_LICENSE
{x_gpl, 0, "IILicense GNU 使用執照"},
#endif