diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-26 16:37:30 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-26 16:37:30 +0800 |
commit | efb64bb91a13ea9f7551d8b3ae66620516e086ff (patch) | |
tree | c246d7c5eaa063e4c50343e2d83500ed1d7dbe2f | |
parent | 299f5b65ffac591d420298dae361cc9c388d4595 (diff) | |
download | pttbbs-efb64bb91a13ea9f7551d8b3ae66620516e086ff.tar pttbbs-efb64bb91a13ea9f7551d8b3ae66620516e086ff.tar.gz pttbbs-efb64bb91a13ea9f7551d8b3ae66620516e086ff.tar.bz2 pttbbs-efb64bb91a13ea9f7551d8b3ae66620516e086ff.tar.lz pttbbs-efb64bb91a13ea9f7551d8b3ae66620516e086ff.tar.xz pttbbs-efb64bb91a13ea9f7551d8b3ae66620516e086ff.tar.zst pttbbs-efb64bb91a13ea9f7551d8b3ae66620516e086ff.zip |
UserAgreement
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1263 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/register.c | 17 | ||||
-rw-r--r-- | sample/pttbbs.conf | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 51540ba1..151a6e25 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -200,6 +200,23 @@ new_register() char passbuf[STRLEN]; int allocid, try, id; +#ifdef HAVE_USERAGREEMENT + more(HAVE_USERAGREEMENT, YEA); + while( 1 ){ + getdata(b_lines - 1, 0, "請問您接受這份使用者條款嗎? (yes/no) ", + passbuf, 4, LCECHO); + if( passbuf[0] == 'y' ) + break; + if( passbuf[0] == 'n' ){ + clear(); + outs("\n抱歉, 您須要接受使用者條款才能註冊帳號享受我們的服務唷!"); + pressanykey(); + oflush(); + exit(1); + } + vmsg("請輸入 y表示接受, n表示不接受"); + } +#endif memset(&newuser, 0, sizeof(newuser)); more("etc/register", NA); try = 0; diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf index 0532cf04..2bfd3b98 100644 --- a/sample/pttbbs.conf +++ b/sample/pttbbs.conf @@ -110,6 +110,9 @@ (即 telnet 的 control packet), 可避免循環錯誤 */ //#define SKIP_TELNET_CONTROL_SIGNAL +/* 若定義, 在使用者註冊之前, 會先顯示出該檔案, 經使用者確認後才能註冊 */ +//#define HAVE_USERAGREEMENT "etc/UserAgreement" + /* 前進站畫面 */ #define INSCREEN \ "前進站畫面 (請至 pttbbs.conf 修改您的前進站畫面)" |