summaryrefslogtreecommitdiffstats
path: root/mbbsd/register.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-26 16:37:30 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-26 16:37:30 +0800
commitefb64bb91a13ea9f7551d8b3ae66620516e086ff (patch)
treec246d7c5eaa063e4c50343e2d83500ed1d7dbe2f /mbbsd/register.c
parent299f5b65ffac591d420298dae361cc9c388d4595 (diff)
downloadpttbbs-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
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r--mbbsd/register.c17
1 files changed, 17 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;