From 8992391472b3533826cfedb32b2198b1e7a66256 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 16 May 2005 15:27:17 +0000 Subject: Registeration, let's go English. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2723 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 5 ++++- sample/etc/registermail | 18 +++++++++++++++++- sample/pttbbs.conf | 1 + 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/mbbsd/user.c b/mbbsd/user.c index b8fc5d77..83971b7d 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -994,6 +994,9 @@ static char * getregcode(char *buf) { strcpy(buf, crypt(cuser.userid, "02")); + /* hack to prevent trailing dots */ + if (buf[strlen(buf)-1] == '.') + buf[strlen(buf)-1] = 'd'; return buf; } @@ -1130,7 +1133,7 @@ toregister(char *email, char *genbuf, char *phone, char *career, sethomefile(buf, cuser.userid, "justify"); } snprintf(buf, sizeof(buf), - "您在 " BBSNAME " 的認證碼: %s", getregcode(genbuf)); + " " BBSENAME " - [ %s ]", getregcode(genbuf)); strlcpy(tmp, cuser.userid, sizeof(tmp)); strlcpy(cuser.userid, str_sysop, sizeof(cuser.userid)); #ifdef HAVEMOBILE diff --git a/sample/etc/registermail b/sample/etc/registermail index aa38aef1..b08a7218 100644 --- a/sample/etc/registermail +++ b/sample/etc/registermail @@ -1,7 +1,11 @@ +Message below is written in Chinese/Big5. +If you cannot read Chinese/Big5, skip to English section. +------------------------------------------------------------- 親愛的使用者您好: 歡迎您到 ptt2 註冊, - 請直接到 (U)ser -> (R)egister 填入您的認證碼 (在主旨上) + 請直接到 (U)ser -> (R)egister 填入您的認證碼 + (在主旨上的 [ ] 括號內,共 13 個字) 即可通過認證取得所有功能喔~ :) 如果有須要服務的地方, 請到 SYSOP板, 我們會竭誠為您服務~ :) @@ -9,3 +13,15 @@ ptt站長群敬上 注意: 若您並沒有至 ptt2 註冊, 請直接刪除這封信. +------------------------------------------------------------- +Dear user: + Please go PTT BBS (U)ser -> (R)egister and input + your verification code (which is 13 characters + on subject and quoted by square brackets - [ ] ) + If you have any problem, go contact us at SYSOP. + + PTT Admins + +Warning: if you did not request a registeration, please + delete this mail directly. +------------------------------------------------------------- diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf index e3a3a68e..ac65fbbc 100644 --- a/sample/pttbbs.conf +++ b/sample/pttbbs.conf @@ -6,6 +6,7 @@ */ /* 定義 BBS 站名位址 */ #define BBSNAME "新批踢踢" /* 中文站名 */ +#define BBSENAME "PTT2" /* 英文站名 */ #define MYHOSTNAME "ptt2.cc" /* 網路位址 */ #define MYIP "140.112.30.143" /* IP位址 */ -- cgit v1.2.3