%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WapReg.aspx.cs" Inherits="KeLin.WebSite.WapReg" %><%@ Import namespace="KeLin.ClassManager.Tool" %><% //柯林短信中心号码 string m1,m2,m3; m1 = "13556000271"; m2 = "13556000271"; m3 = "13119529349"; StringBuilder strhtml = new StringBuilder(); //显示头 Response.Write(WapTool.showTop(this.GetLang("注册普通会员|注册普通会员|Reg"), wmlVo));//显示头 if (ver == "1") //显示WAP1.0 { strhtml.Append("
");
strhtml.Append(this.ERROR);
if (this.INFO == "OK")
{
//发送邮件
string title = "恭喜您注册会员成功!";
string content = "我的用户名:" + tousername + "
我的会员ID:" + this.userid + "
我的密码:" + topassword + "
请保管好以上帐号信息!
" + siteVo.sitename + " " + this.http_start + " 欢迎您。
";
string content2 = "";
if (this.isclose == "5")
{
content2 = content2 + "
请点击以下地址进行激活帐号:" + this.http_start + "wapreg.aspx?action=checkuser&siteid=" + this.siteid + "&touserid=" + this.userid + "&checkcode=" + checkcode_lockuser + "";
}
EMAIL_INFO = WapTool.SendEmail(toemail, tonickname, siteVo.sitename, title, content + content2, true);
strhtml.Append("" + title + "
");
strhtml.Append("" + content.Replace("\n","
") + "
");
strhtml.Append("系统已将以上信息发到电子邮箱" + toemail + ":" + this.EMAIL_INFO + "
");
if (this.isclose == "5")
{
strhtml.Append("请登录您的邮箱进行激活帐号。
");
}
else
{
strhtml.Append("" + this.GetLang("马上登录|马上登录|Please Login") + "
");
}
}
else if (this.INFO == "WAITING")
{
strhtml.Append("请再过" + this.KL_CheckIPTime + "秒后操作!
");
}
else if (this.INFO == "REGCODEERR")
{
strhtml.Append("邀请码无效!
");
if (this.regcodeUserid > 0)
{
strhtml.Append("已被会员:" + this.regcodeUserid + "使用!
");
}
else if (this.regcodeUserid==-1)
{
strhtml.Append("此邀请码不存!
");
}
}
else if (this.INFO == "NULL")
{
strhtml.Append("" + this.GetLang("所有项不能为空!|所有项不能为空!|not null!") + "
");
}
else if (this.INFO == "MAILERR")
{
strhtml.Append("邮箱格式错误!
");
}
else if (this.INFO == "CHECKERR")
{
strhtml.Append("" + this.GetLang("校验码错误!(如果一直这样请联系管理员启用文本数字)|校验码错误!|checkcode error!") + "
");
}
else if (this.INFO == "NOTENORNUM")
{
strhtml.Append("" + this.GetLang("用户名只能是英文或数字!|用户名只能是英文或数字!|username need en or num!") + "
");
}
else if (this.INFO == "MAXLEN")
{
strhtml.Append("" + this.GetLang("用户名长度要大于" + this.len + "位!|用户名长度要大于" + this.len + "位!|username to more than " + this.len + " words!") + "
");
}
else if (this.INFO == "HASEXISTUSERNAME")
{
strhtml.Append("" + this.GetLang("用户名已存在!|用户名已存在!|username exist!") + "
");
}
else if (this.INFO == "HASEXISTNICKNAME")
{
strhtml.Append("" + this.GetLang("昵称已存在!|昵称已存在2字!|nickname exist!") + "
");
}
else if (this.INFO == "HASEXISTEMAIL")
{
strhtml.Append("邮箱地址已存在,请更换一个。
");
}
//开始显示
if (this.isclose == "2")
{
strhtml.Append("" + this.GetLang("网站暂时关闭注册!|网站暂时关闭注册!|Close reg!") + "
");
}
else if (this.INFO != "OK")
{
//手动注册
if ((this.isclose == "0" || this.isclose == "3" || this.isclose == "4" || this.isclose == "5") && KL_SMS_ALLREG == "")
{
strhtml.Append(this.GetLang("用户名或手机号码|用户名或手机号码|username or mobile") + "*:
");
strhtml.Append("
");
strhtml.Append(this.GetLang("昵称|昵称|nickname") + "*:
");
strhtml.Append("
");
strhtml.Append(this.GetLang("密码|密码|password") + "*:
");
strhtml.Append("
");
strhtml.Append(this.GetLang("邮箱,用于取回密码|邮箱,用于取回密码|email"));
if (this.isclose == "5")
{
strhtml.Append(",邮箱验证才能激活帐户");
}
strhtml.Append("*:
");
strhtml.Append("
");
strhtml.Append(this.GetLang("性别|性别|sex ") + "*:");
strhtml.Append("
");
if (this.isclose == "4")
{
strhtml.Append(this.GetLang("邀请码|邀请码|邀请码") + "*:");
strhtml.Append("
");
}
strhtml.Append(this.GetLang("验证码|验证码|code check") + "*:");
strhtml.Append(" " + this.checkcodeinfo + "
");
if (this.TJ != "")
{
strhtml.Append("推荐人:" + this.TJ + "
");
}
strhtml.Append("" + this.GetLang("[√我同意本站协议]|[√我同意本站协议]|[√ ok]") + "
");
if (this.lice == "view")
{
strhtml.Append("欢迎您加入本站点参加交流和讨论,为维护网上公共秩序和社会稳定,请您自觉遵守以下条款:
");
strhtml.Append("一、 不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播非法信息!
");
strhtml.Append("二、互相尊重,对自己的言论和行为负责。
");
strhtml.Append("三、您必需同意不发表带有辱骂,淫秽,粗俗,诽谤,带有仇恨性,恐吓的,不健康的或是任何违反法律的内容!
");
}
strhtml.Append("
");
}
//短信注册
if (this.isclose == "1" || this.isclose == "3" || KL_SMS_ALLREG != "")
{
string myorder=smsVo.myorder;
string myorderid=smsVo.myorderid.ToString();
string t = "";
if(long.Parse(r) % 2==0 ){
t=m1;
m1 = m3;
m3 = t;
}
if (KL_SMS_ALLREG != "")
{
string[] mobiles = KL_SMS_ALLREG.Split('|');
if (mobiles.Length == 1)
{
m1 = mobiles[0];
m2 = m1;
m3 = m1;
}
else if (mobiles.Length == 2)
{
m1 = mobiles[0];
m2 = mobiles[1];
m3 = m1;
}
else if (mobiles.Length == 3)
{
m1 = mobiles[0];
m2 = mobiles[1];
m3 = mobiles[2];
}
myorder = this.siteid;
myorderid = KL_SMS_ALLREG_ID;
}
if (this.TJ != "")
{
myorder = myorder + "#" + this.TJ+"#";
}
strhtml.Append("发短信免费注册、取回密码:
编辑短信 " + myorder + " 发送至以下任意一个通道:
");
strhtml.Append("通道一:" + m1 + "
");
strhtml.Append("通道二:" + m2 + "
");
strhtml.Append("通道三:" + m3 + "
");
if(KL_SMS_ALLREG=="") strhtml.Append("实时状态:
");
strhtml.Append("用户名:为你的手机号码,境外号码用后11位
");
strhtml.Append("密码:为手机号码后四位。
");
strhtml.Append("短信内容写错将无法注册成功或更新密码,如果受移动短信中心延迟发送,请耐心等待,或向不同通道号码发信息。");
strhtml.Append("
系统不会回复你任何信息,注册不收取任何费用!请放心!");
strhtml.Append("
");
//显示前8位
strhtml.Append("刷新-查看错误
本站最新注册前8位:
");
for (int i = 0; (listVo != null && i < listVo.Count); i++)
{
if (listVo[i].username.Length > 7)
{
strhtml.Append(listVo[i].username.Substring(0,6) + "*****
");
}
else
{
strhtml.Append(listVo[i].username + "****
");
}
}
}
}
if (this.remark != "")
{
strhtml.Append(WapTool.ToWML(this.remark,wmlVo) + "
");
}
strhtml.Append("" + this.GetLang("返回登录|返回登录|Please Login") + "-");
strhtml.Append("" + this.GetLang("返回首页|返回首页|back home") + "");
strhtml.Append(WapTool.GetVS(wmlVo));
strhtml.Append("