/// <summary> /// 重写虚方法,此方法将在Init事件前执行 /// </summary> protected override void ShowPage() { action = HotoRequest.GetQueryString("action"); username = HotoRequest.GetQueryString("username"); //检查是否关闭会员注册服务 if (action == "" && uconfig.regstatus == 0) { HttpContext.Current.Response.Redirect(linkurl("register") + "?action=close"); return; } //Email验证 if (action == "checkmail") { string strcode = HotoRequest.GetQueryString("strcode"); Hoto.BLL.user_code bll = new Hoto.BLL.user_code(); Hoto.Model.user_code model = bll.GetModel(strcode); if (model == null) //返回出错 { HttpContext.Current.Response.Redirect(linkurl("register") + "?action=checkerror"); return; } //修改申请码状态 model.status = 1; bll.Update(model); //修改用户状态 new Hoto.BLL.users().UpdateField(model.user_id, "is_lock=0"); } }
/// <summary> /// 返回邀请码状态 /// </summary> /// <param name="str_code">邀请码</param> /// <returns>bool</returns> protected bool get_invite_status(string str_code) { Hoto.Model.user_code model = new Hoto.BLL.user_code().GetModel(str_code); if (model != null) { return(true); } return(false); }
/// <summary> /// 返回邀请码状态 /// </summary> /// <param name="str_code">邀请码</param> /// <returns>bool</returns> protected bool get_invite_status(string str_code) { Hoto.Model.user_code model = new Hoto.BLL.user_code().GetModel(str_code); if (model != null) { return true; } return false; }