コード例 #1
0
 public void ProcessRequest(HttpContext context)
 {
     if (context.Request.HttpMethod == "POST")
     {
         string sAccount = CYRequest.GetFormString("gameaccount");//充值账号
         string sPid     = CYRequest.GetFormString("pid");
         int    iPid     = 0;
         int.TryParse(sPid, out iPid);
         string        sUserName   = PartnerUserBLL.PartnerUserNameGet(sAccount, iPid);
         string        sPhone      = CYRequest.GetFormString("gamephone");
         string        sPayNums    = CYRequest.GetFormString("gamepaynums");    //充值金额
         string        sServername = CYRequest.GetFormString("gameservername"); //充值金额
         StringBuilder sbText      = new StringBuilder(200);
         sbText.AppendFormat("<form id='ptpay' name='ptpay' action='{0}' method='post'>", "PTPay.aspx");
         sbText.AppendFormat("<input type='hidden' name='gameaccount' value='{0}'/>", sUserName);
         sbText.AppendFormat("<input type='hidden' name='gamephone' value='{0}'/>", sPhone);
         sbText.AppendFormat("<input type='hidden' name='gamepaynums' value='{0}'/>", sPayNums);
         sbText.AppendFormat("<input type='hidden' name='gameservername' value='{0}'/>", sServername);
         //submit按钮控件请不要含有name属性
         sbText.Append("<input type='submit' value='submit' style='display:none;'></form>");
         sbText.Append("<script>document.forms['ptpay'].submit();</script>");
         context.Response.Write(sbText);
         return;
     }
 }
コード例 #2
0
ファイル: jdsjcl.aspx.cs プロジェクト: bin1123/webgamesite
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.HttpMethod == "POST")
     {
         string sUserName = CYRequest.GetFormString("username").Trim();
         string sPassWord = CYRequest.GetFormString("pwd").Trim();
         string sResult   = UserBll.LoginCheck(sUserName, sPassWord);
         if (sResult.Length < 1)
         {
             if (UserBll.UserAllVal(sUserName, sPassWord))
             {
                 string sPageUrl = Request.Url.ToString();
                 int    iUserID  = UserBll.UserIDSel(sUserName);
                 LoginStateSet(sUserName, iUserID, sPageUrl);
             }
             else
             {
                 sMsg = "<script>alert('登陆失败,用户名密码不正确!')</script>";
             }
         }
         else
         {
             sMsg = sResult;
         }
     }
     sAccount = GetAccount();
 }
コード例 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.RequestType == "POST")
     {
         string sType = CYRequest.GetFormString("Type");
         if (sType == "login")
         {
             gameval();
         }
         else
         {
             sAccount = GetAccount();
             string sGameAbbre = CYRequest.GetFormString("gameabbre");
             int    iUserID    = GetUserID();
             if (iUserID < 1000)
             {
                 iUserID = UserBll.UserIDSel(sAccount);
             }
             gamelogin(sGameAbbre, iUserID);
         }
     }
     else
     {
         if (LoginSessionVal() || isLoginCookie())
         {
             sAccount = GetAccount();
         }
         else
         {
             Response.Redirect(string.Format("{0}/yxzq/sg/index1.html", sWUrl), true);
         }
     }
 }
コード例 #4
0
ファイル: reg.aspx.cs プロジェクト: bin1123/webgamesite
        protected void RegButton_Click(object sender, EventArgs e)
        {
            string sAccount  = CYRequest.GetFormString("txz").Trim();
            string sPassWord = CYRequest.GetFormString("pwdtwo").Trim();

            string sValCode = Request["ValCode"].ToString();
            string sRes     = ValCheckCode(sValCode);

            if (sRes != "0")
            {
                StringBuilder sbText = new StringBuilder();
                sbText.Append("<script>alert('");
                sbText.Append(sRes);
                sbText.Append("')</script>");
                sMsg = sbText.ToString();
                return;
            }

            string sValMessage = UserBll.RegCheck(sAccount, sPassWord);

            if (sValMessage != "")
            {
                sMsg = sValMessage;
                return;
            }

            int iUID = UserBll.UserReg(sAccount, sPassWord);

            if (-1 == iUID)
            {
                sMsg = "<script>alert('注册失败,请重试!')</script>";
                return;
            }
            else if (iUID > 999)
            {
                string   sQuestion = CYRequest.GetString("question");
                string   sAnswer   = CYRequest.GetString("answer");
                string   sEmail    = CYRequest.GetString("email");
                string   sName     = CYRequest.GetString("realname");
                string   sCrednnum = CYRequest.GetString("credennum");
                UserInfo uiObject  = new UserInfo();
                uiObject.Credennum = sCrednnum;
                uiObject.Answer    = sAnswer;
                uiObject.Email     = sEmail;
                uiObject.Name      = sName;
                uiObject.question  = sQuestion;
                uiObject.regip     = ProvideCommon.GetRealIP();
                uiObject.uid       = iUID;
                UserInfoBLL.UserInfoAdd(uiObject);
                string sPageUrl = Request.Url.ToString();
                LoginStateSet(sAccount, iUID, sPageUrl);
                string sWUrl   = WebConfig.BaseConfig.sWUrl;
                string sWWWUrl = string.Format("{0}/{1}?un={2}", sWUrl, "usercookie.aspx", sAccount);
                string sKey    = ConfigurationManager.AppSettings["UserValKey"].ToString();
                string sBBSUrl = DiscuzUserI.BBSLogin(sAccount, sPassWord, sKey);
                string sJSUrl  = string.Format("<script src='{0}'></script><script src='{1}'></script>", sBBSUrl, sWWWUrl);
                sMsg = string.Format("{0}<script>alert('注册成功!');location.href='http://www.dao50.com/';</script>", sJSUrl);
                return;
            }
        }
コード例 #5
0
ファイル: MultiMMBH.aspx.cs プロジェクト: bin1123/webgamesite
 protected void Page_Load(object sender, EventArgs e)
 {
     if (LoginSessionVal() || isLoginCookie())
     {
         if (Request.HttpMethod == "POST")
         {
             int    iUserID       = GetUserID();
             string sBindQuestion = UserInfoBLL.UserQuestionSelByID(iUserID);
             string sBackUrL      = Request.UrlReferrer.ToString();
             string sGoUrL        = string.Format("http://{0}/user.html", Request.UrlReferrer.Host);
             if (sBindQuestion != null && sBindQuestion.Length > 4)
             {
                 Response.Write(string.Format("<script>alert('密码保护已绑定!');location.href='{0}';</script>", sBackUrL));
                 return;
             }
             string sQuestion = CYRequest.GetFormString("question");
             string sAnswer   = CYRequest.GetFormString("mbda");
             int    iNum      = UserInfoBLL.UserInfoUpdateOfQuestion(sQuestion, sAnswer, iUserID);
             if (iNum > 0)
             {
                 Response.Write(string.Format("<script>alert('密码保护绑定成功!');location.href='{0}';</script>", sGoUrL));
                 return;
             }
             else
             {
                 Response.Write(string.Format("<script>alert('密码保护绑定失败!');location.href='{0}';</script>", sBackUrL));
                 return;
             }
         }
     }
 }
コード例 #6
0
 public void ProcessRequest(HttpContext context)
 {
     if (context.Request.HttpMethod == "POST")
     {
         string sAccount = CYRequest.GetFormString("bankaccount");//充值账号
         string sPid     = CYRequest.GetFormString("pid");
         int    iPid     = 0;
         int.TryParse(sPid, out iPid);
         string        sUserName       = PartnerUserBLL.PartnerUserNameGet(sAccount, iPid);
         string        sPhone          = CYRequest.GetFormString("bankphonenum");
         string        sPayNums        = CYRequest.GetFormString("bankpayprice");//充值金额
         string        bankchannel     = CYRequest.GetFormString("bankchannel");
         string        bankname        = CYRequest.GetFormString("bankname");
         string        cardTypeCombine = CYRequest.GetString("cardTypeCombine");
         StringBuilder sbText          = new StringBuilder(200);
         sbText.AppendFormat("<form id='bankpay' name='bankpay' action='{0}' method='post'>", "BankPay.ashx");
         sbText.AppendFormat("<input type='hidden' name='bankaccount' value='{0}'/>", sUserName);
         sbText.AppendFormat("<input type='hidden' name='bankphonenum' value='{0}'/>", sPhone);
         sbText.AppendFormat("<input type='hidden' name='bankpayprice' value='{0}'/>", sPayNums);
         sbText.AppendFormat("<input type='hidden' name='bankchannel' value='{0}'/>", bankchannel);
         sbText.AppendFormat("<input type='hidden' name='bankname' value='{0}'/>", bankname);
         sbText.AppendFormat("<input type='hidden' name='cardTypeCombine' value='{0}'/>", cardTypeCombine);
         //submit按钮控件请不要含有name属性
         sbText.Append("<input type='submit' value='submit' style='display:none;'></form>");
         sbText.Append("<script>document.forms['bankpay'].submit();</script>");
         context.Response.Write(sbText);
         return;
     }
 }
コード例 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     sAccount = GetAccount();
     if (Request.HttpMethod == "POST")
     {
         string sAccountVal  = CYRequest.GetFormString("account");
         string sPassWord    = CYRequest.GetFormString("pwd");
         string sMD5PassWord = UserBll.PassWordMD5(sAccountVal, sPassWord);
         string sRes         = UserBll.UserVal(sAccountVal, sMD5PassWord);
         string sPageUrl     = Request.Url.ToString();
         if (sRes == "0")
         {
             int iUserID = UserBll.UserIDSel(sAccountVal);
             LoginStateSet(sAccountVal, iUserID, sPageUrl);
         }
         else
         {
             string sMD5PassWordNew = UserBll.PassWordMD5New(sAccountVal, sPassWord);
             if ("0" == UserBll.UserVal(sAccountVal, sMD5PassWordNew))
             {
                 int iUserID = UserBll.UserIDSel(sAccountVal);
                 LoginStateSet(sAccountVal, iUserID, sPageUrl);
             }
         }
         string sUrl = string.Empty;
         if (Request.ServerVariables["HTTP_Referer"] != null)
         {
             sUrl = Request.ServerVariables["HTTP_Referer"];
             Response.Redirect(sUrl, true);
         }
         return;
     }
 }
コード例 #8
0
ファイル: YPay.ashx.cs プロジェクト: bin1123/webgamesite
 public void ProcessRequest(HttpContext context)
 {
     if (context.Request.HttpMethod == "POST")
     {
         string  sChannle = CYRequest.GetFormString("Channel");
         string  sPhone   = CYRequest.GetFormString("Phone");
         string  sAccount = CYRequest.GetFormString("Account");
         string  sPrice   = CYRequest.GetFormString("Price");
         decimal dPrice   = 0;
         decimal.TryParse(sPrice, out dPrice);
         string sCount = CYRequest.GetFormString("Count");
         int    iCount = 0;
         int.TryParse(sCount, out iCount);
         string sGame = CYRequest.GetFormString("Game");
         string sUrl  = string.Empty;
         if (sGame == "" || sGame == "unsafe string")
         {
             sUrl = YeePayBuy.PayBegin(sChannle, sPhone, sAccount, dPrice, iCount);
         }
         else
         {
             string  sGameName  = sGame.Split('|')[0];
             string  sTranIP    = ProvideCommon.GetRealIP();
             string  sPTranID   = TransPBLL.PointSalesInit(sChannle, sPhone, sAccount, dPrice, iCount, sTranIP);//订单号
             int     iPayUserID = UserBll.UserIDSel(sAccount);
             decimal dFeeScale  = ChannelBLL.FeeScaleSel(sChannle);
             //int iPrice = Convert.ToInt32(dPrice);
             int    iGamePoints = Convert.ToInt32(dPrice * 10 * dFeeScale);
             string sGTranID    = TransGBLL.GameSalesInit(sGameName, iGamePoints, sAccount, sPhone, iPayUserID, sTranIP);
             TranQuickBLL.TranQuickAdd(sGTranID, sPTranID);
             sUrl = YeePayBuy.QuickPayBegin(sPTranID, sChannle, sAccount, dPrice, sGame);
         }
         context.Response.Redirect(sUrl, true);
     }
 }
コード例 #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (LoginSessionVal() || isLoginCookie())
     {
         if (Request.HttpMethod == "POST")
         {
             int    iUID     = GetUserID();
             string sEmail   = UserInfoBLL.UserEmailSel(iUID);
             string sBackUrL = Request.UrlReferrer.ToString();
             string sGoUrL   = string.Format("http://{0}/user.html", Request.UrlReferrer.Host);
             if (sEmail != null && sEmail.Length > 4)
             {
                 Response.Write(string.Format("<script>alert('邮箱已绑定!');location.href='{0}';</script>", sBackUrL));
                 return;
             }
             string sBindEmail = CYRequest.GetFormString("EmailTwo");
             int    iNum       = UserInfoBLL.UserInfoUpdateOfEmail(sBindEmail, iUID);
             if (iNum > 0)
             {
                 Response.Write(string.Format("<script>alert('邮箱绑定成功!');location.href='{0}';</script>", sGoUrL));
                 return;
             }
             else
             {
                 Response.Write(string.Format("<script>alert('邮箱绑定失败!');location.href='{0}';</script>", sBackUrL));
                 return;
             }
         }
     }
 }
コード例 #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (LoginSessionVal() || isLoginCookie())
     {
         if (Request.HttpMethod == "POST")
         {
             int    iUID       = GetUserID();
             string sCredenNum = UserInfoBLL.UserCredennumSel(iUID);
             string sBackUrL   = Request.UrlReferrer.ToString();
             string sGoUrL     = string.Format("http://{0}/user.html", Request.UrlReferrer.Host);
             if (sCredenNum.Length > 14)
             {
                 Response.Write(string.Format("<script>alert('已经解除防沉迷!');location.href='{0}';</script>", sBackUrL));
                 return;
             }
             string sUserName      = CYRequest.GetFormString("RealName");
             string sCredenNumPost = CYRequest.GetFormString("CredenNum");
             int    iNum           = UserInfoBLL.UserInfoUpdateOfIndulge(sUserName, sCredenNumPost, iUID);
             if (iNum > 0)
             {
                 Response.Write(string.Format("<script>alert('防沉迷解除成功!谢谢!');location.href='{0}';</script>", sGoUrL));
                 return;
             }
             else
             {
                 Response.Write(string.Format("<script>alert('防沉迷解除失败!');location.href='{0}';</script>", sBackUrL));
                 return;
             }
         }
     }
 }
コード例 #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.HttpMethod == "POST")
     {
         string username = CYRequest.GetFormString("account");
         string password = CYRequest.GetFormString("pwdone");
         string fromurl  = CYRequest.GetFormString("url");
         string sErrMsg  = UserBll.LoginCheck(username, password);
         string sGoUrl   = string.Empty;
         string sHost    = string.Empty;
         if (fromurl.Length > 4)
         {
             sGoUrl = fromurl;
             sHost  = ProvideCommon.getHost(fromurl);
         }
         else
         {
             sGoUrl = Request.UrlReferrer.ToString();
             sHost  = Request.UrlReferrer.Host;
         }
         if (sErrMsg.Length > 0)
         {
             Response.Write(string.Format("{0}<script>location.href='{1}'</script>", sErrMsg, sGoUrl));
             return;
         }
         if (UserBll.UserAllVal(username, password))
         {
             string sPageUrl = Request.Url.ToString();
             int    iUserID  = UserBll.UserIDSel(username);
             LoginStateSet(username, iUserID, sPageUrl);
             //string sTypeID = string.Empty;
             //switch (sHost)
             //{
             //    case "www.wanyouxi123.com":
             //        sTypeID = "20";
             //        break;
             //    case "www.99wanyouxi.com":
             //        sTypeID = "21";
             //        break;
             //}
             //SetUserType(sTypeID);
             int    iPoints    = GetUPoints();
             string sMultiPP   = ProvideCommon.getMultiPP(iUserID);
             string sReturnUrl = string.Format("http://{0}/usercookie.aspx?un={1}&point={2}&GoUrl={3}&pp={4}", sHost, username, iPoints.ToString(), sGoUrl, sMultiPP);
             Response.Redirect(sReturnUrl, true);
             return;
         }
         else
         {
             StringBuilder sbHtml = new StringBuilder();
             sbHtml.Append("<script>alert('账号信息输入错误!');</script>");
             sbHtml.AppendFormat("<script>location.href='{0}'</script>", sGoUrl);
             Response.Write(sbHtml.ToString());
             return;
         }
     }
 }
コード例 #12
0
 public void ProcessRequest(HttpContext context)
 {
     if (context.Request.HttpMethod == "POST")
     {
         string sFromHost = context.Request.UrlReferrer.Host;
         context.Response.Cookies["fromhost"].Value   = sFromHost;
         context.Response.Cookies["fromhost"].Expires = DateTime.Now.AddHours(1);
         string sAccount = CYRequest.GetFormString("bankaccount");  //充值账号
         string sPhone   = CYRequest.GetFormString("bankphonenum");
         string sPayNums = CYRequest.GetFormString("bankpayprice"); //充值金额
         int    iUserID  = UserBll.UserIDSel(sAccount);
         if (iUserID < 1000)
         {
             context.Response.Write("<script>alert('充值账号不存在!');</script>");
             return;
         }
         else
         {
             decimal dPrice = 0;
             decimal.TryParse(sPayNums, out dPrice);
             if (dPrice < 10)
             {
                 context.Response.Redirect("PayPErr.aspx?err=204");
                 return;
             }
             string sChannel  = CYRequest.GetFormString("bankchannel");
             string sBankName = string.Empty;
             if (sChannel == "ibank")
             {
                 sBankName = CYRequest.GetFormString("bankname");
             }
             int    iCount     = 1;
             string sPayDirect = string.Empty;
             if (sChannel == "tenpay")
             {
                 sPayDirect = TenPayBuy.PayBegin(sChannel, sPhone, sAccount, dPrice, iCount, context);
             }
             else if (sChannel == "szfphone")
             {
                 string cardTypeCombine = CYRequest.GetString("cardTypeCombine");
                 sPayDirect = SzfPayBuy.PayBegin(sChannel, sPhone, sAccount, dPrice, iCount, "0", cardTypeCombine);
             }
             else
             {
                 sPayDirect = PayAll.CreatePay(sChannel, sPhone, sAccount, dPrice, iCount, sBankName);
             }
             context.Response.Write(sPayDirect);
             return;
         }
     }
 }
コード例 #13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.HttpMethod == "POST")
     {
         string        username = CYRequest.GetFormString("account");
         string        password = CYRequest.GetFormString("pwdone");
         string        url      = CYRequest.GetFormString("url");
         StringBuilder sbHtml   = new StringBuilder();
         string        sErrMsg  = "";//UserBll.LoginVal(username, password);
         if (sErrMsg.Length > 0)
         {
             sbHtml.AppendFormat("<script>alert('{0}');</script>", sErrMsg);
         }
         else if (UserBll.UserAllVal(username, password))
         {
             string sPageUrl = Request.Url.ToString();
             int    iUserID  = UserBll.UserIDSel(username);
             LoginStateSet(username, iUserID, sPageUrl);
             string sKey    = ConfigurationManager.AppSettings["UserValKey"].ToString();
             string sBBSUrl = DiscuzUserI.BBSLogin(username, password, sKey);
             sbHtml.Append(string.Format("<script src='{0}'></script>", sBBSUrl));
             //string sCUrl = WebConfig.BaseConfig.sWUrl;
             //string sHost = ProvideCommon.getHost(url);
             //if(sHost.Length < 5)
             //{
             //    sHost = Request.UrlReferrer.Host;
             //}
             string sHost   = "www.dao50.com";
             int    iPoints = GetUPoints();
             string sJSUrl  = string.Format("http://{0}/{1}?un={2}&point={3}", sHost, "usercookie.aspx", username, iPoints);
             sbHtml.Append(string.Format("<script src='{0}'></script>", sJSUrl));
         }
         else
         {
             sbHtml.Append("<script>alert('账号信息输入错误!');</script>");
         }
         if (url != "")
         {
             sbHtml.AppendFormat("<script>location.href='{0}'</script>", url);
         }
         else
         {
             string sWUrl = WebConfig.BaseConfig.sWUrl;
             sbHtml.AppendFormat("<script>location.href='{0}'</script>", sWUrl);
         }
         Response.Write(sbHtml.ToString());
     }
 }
コード例 #14
0
        protected void RegButton_Click(object sender, EventArgs e)
        {
            string sAccount    = CYRequest.GetFormString("txz").Trim();
            string sPassWord   = CYRequest.GetFormString("pwdtwo").Trim();
            string sValMessage = UserBll.RegCheck(sAccount, sPassWord);

            if (sValMessage != "")
            {
                sMsg = sValMessage;
                return;
            }

            int iUID = UserBll.UserReg(sAccount, sPassWord);

            if (-1 == iUID)
            {
                sMsg = "<script>alert('注册失败,请重试!')</script>";
                return;
            }
            else if (iUID > 999)
            {
                string sChannel = CYRequest.GetString("channel");
                //string sQuestion = "";
                //string sAnswer = "";
                //string sEmail = "";
                //string sName = "";
                //string sCrednnum = "";
                //UserInfo uiObject = new UserInfo();
                //uiObject.Credennum = sCrednnum;
                //uiObject.Answer = sAnswer;
                //uiObject.Email = sEmail;
                //uiObject.Name = sName;
                //uiObject.question = sQuestion;
                //uiObject.regip = ProvideCommon.GetRealIP();
                //uiObject.uid = iUID;
                //UserInfoBLL.UserInfoAdd(uiObject);
                string sKey     = ConfigurationManager.AppSettings["UserValKey"].ToString();
                string sR       = DiscuzUserI.BBSReg(sAccount, sPassWord, sKey);
                string sPageUrl = Request.Url.ToString();
                string url      = string.Format("http://union.dao50.com/Interface/other/UsercenterReg.aspx?name={0}&userid={1}&channel={2}", sAccount, iUID, sChannel);
                GetPageInfo(url);
                // LoginStateSet(sAccount, iUID, sPageUrl);
                //更新成功
                sMsg = "<script>alert('注册成功!');location.href='http://www.dao50.com/';</script>";
                return;
            }
        }
コード例 #15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string sRes = string.Empty;

            if (LoginSessionVal() || isLoginCookie())
            {
                if (Request.HttpMethod == "POST")
                {
                    string sBirthday = CYRequest.GetFormString("birthday").Trim();
                    string sNickname = CYRequest.GetFormString("nickname").Trim();
                    string sPhone    = CYRequest.GetFormString("phone").Trim();
                    string sQQ       = CYRequest.GetFormString("qq").Trim();
                    string sSex      = CYRequest.GetFormString("sex").Trim();
                    string sWork     = CYRequest.GetFormString("work").Trim();
                    string sGoUrL    = CYRequest.GetFormString("fromurl").Trim();
                    string sBackUrL  = Request.UrlReferrer.ToString();
                    if (sNickname.Length > 0 && sPhone.Length == 11 && sBirthday.Length > 7 && sQQ.Length > 4 && sSex.Length == 1 && sWork.Length > 0)
                    {
                        int      iUserID  = GetUserID();
                        UserMore umObject = new UserMore();
                        umObject.userid   = iUserID;
                        umObject.birthday = sBirthday;
                        umObject.nickname = sNickname;
                        umObject.phone    = sPhone;
                        umObject.qq       = sQQ;
                        umObject.sex      = sSex;
                        umObject.work     = sWork;
                        int iRes = UserMoreBLL.UserMoreAdd(umObject);
                        if (iRes > 0)
                        {
                            Response.Write(string.Format("<script>alert('修改成功!')</script><script>location.href='{0}'</script>", sGoUrL));
                            return;
                        }
                        else
                        {
                            Response.Write(string.Format("<script>alert('添加失败!')</script><script>location.href='{0}'</script>", sBackUrL));
                            return;
                        }
                    }
                    else
                    {
                        Response.Write(string.Format("<script>alert('输入内容有误,请从新输入!')</script><script>location.href='{0}'</script>", sBackUrL));
                        return;
                    }
                }
            }
        }
コード例 #16
0
ファイル: Login.aspx.cs プロジェクト: bin1123/webgamesite
        protected void userlogin_Click(object sender, System.Web.UI.ImageClickEventArgs e)
        {
            string sAccountVal  = CYRequest.GetFormString("account").Trim();
            string sPassWord    = CYRequest.GetFormString("pwdone").Trim();
            string sState       = string.Empty;
            string sMD5PassWord = UserBll.PassWordMD5(sAccountVal, sPassWord);

            sState = UserBll.UserVal(sAccountVal, sMD5PassWord);
            if ("0" == sState)
            {
                sAccount = sAccountVal;
                int iUserID = UserBll.UserIDSel(sAccountVal);
                iPoints = UserPointsBLL.UPointAllSel(iUserID);
                GLoginInfo(iUserID);
                string sKey     = ConfigurationManager.AppSettings["UserValKey"].ToString();
                string sUrl     = DiscuzUserI.BBSLogin(sAccountVal, sPassWord, sKey);
                string sPageUrl = Request.Url.ToString();
                LoginStateSet(sAccount, iUserID, sPageUrl);
                string sCUrl  = WebConfig.BaseConfig.sWUrl;
                string sJSUrl = string.Format("{0}/{1}?un={2}", sCUrl, "usercookie.aspx", sAccount);
                sMsg = string.Format("<script src='{0}'></script><script src='{1}'></script>{2}", sUrl, sJSUrl, PageRefresh());
            }
            else
            {
                string sMD5PassWordNew = UserBll.PassWordMD5New(sAccountVal, sPassWord);
                if ("0" == UserBll.UserVal(sAccountVal, sMD5PassWordNew))
                {
                    sAccount = sAccountVal;
                    int iUserID = UserBll.UserIDSel(sAccountVal);
                    iPoints = UserPointsBLL.UPointAllSel(iUserID);
                    GLoginInfo(iUserID);
                    string sKey     = ConfigurationManager.AppSettings["UserValKey"].ToString();
                    string sUrl     = DiscuzUserI.BBSLogin(sAccountVal, sPassWord, sKey);
                    string sPageUrl = Request.Url.ToString();
                    LoginStateSet(sAccount, iUserID, sPageUrl);
                    string sCUrl  = "http://www.dao50.com";
                    string sJSUrl = string.Format("{0}/{1}?un={2}", sCUrl, "usercookie.aspx", sAccount);
                    sMsg = string.Format("<script src='{0}'></script><script src='{1}'></script>{2}", sUrl, sJSUrl, PageRefresh());
                }
                else
                {
                    sMsg = "<script>alert('用户信息输入错误,验证失败!')</script>";
                    return;
                }
            }
        }
コード例 #17
0
        private string EmailBind(int iUserID)
        {
            string sBindEmail = CYRequest.GetFormString("EmailTwo");
            int    iNum       = UserInfoBLL.UserInfoUpdateOfEmail(sBindEmail, iUserID);
            string sMsg       = string.Empty;

            if (iNum > 0)
            {
                //更新成功
                sMsg = "0";
            }
            else
            {
                //更新失败
                sMsg = "1";
            }
            return(sMsg);
        }
コード例 #18
0
        private string DIndulge(int iUserID)
        {
            string sUserName  = CYRequest.GetFormString("UserName");
            string sCredenNum = CYRequest.GetFormString("CredenNum");
            int    iNum       = UserInfoBLL.UserInfoUpdateOfIndulge(sUserName, sCredenNum, iUserID);
            string sMsg       = string.Empty;

            if (iNum > 0)
            {
                //更新成功
                sMsg = "0";
            }
            else
            {
                //更新失败
                sMsg = "1";
            }
            return(sMsg);
        }
コード例 #19
0
ファイル: DIndulge.aspx.cs プロジェクト: bin1123/webgamesite
        protected void Page_Load(object sender, EventArgs e)
        {
            int iUID = GetUserID();

            if (!Page.IsPostBack)
            {
                if (!(LoginSessionVal() || isLoginCookie()))
                {
                    Response.Redirect("../Default.aspx", true);
                }
                else
                {
                    string sCredenNum = UserInfoBLL.UserCredennumSel(iUID);
                    if (sCredenNum.Length > 14)
                    {
                        //防沉迷已经添加
                        sMsg = "<script>alert('已经解除防沉迷!不用再次解除!');location.href='../Default.aspx';</script>";
                        return;
                    }
                }
            }
            if (Request.HttpMethod == "POST")
            {
                string sUserName  = CYRequest.GetFormString("UserName");
                string sCredenNum = CYRequest.GetFormString("CredenNum");
                int    iNum       = UserInfoBLL.UserInfoUpdateOfIndulge(sUserName, sCredenNum, iUID);
                if (iNum > 0)
                {
                    //更新成功
                    sMsg = "<script>alert('防沉迷解除成功!谢谢!');location.href='../Default.aspx';</script>";
                    return;
                }
                else
                {
                    //更新失败
                    sMsg = "<script>alert('防沉迷解除失败!')</script>";
                    return;
                }
            }
        }
コード例 #20
0
ファイル: EmailBind.aspx.cs プロジェクト: bin1123/webgamesite
        protected void Page_Load(object sender, EventArgs e)
        {
            int iUID = GetUserID();

            if (!Page.IsPostBack)
            {
                if (!(LoginSessionVal() || isLoginCookie()))
                {
                    Response.Redirect("../Default.aspx", true);
                }
                else
                {
                    sEmail = UserInfoBLL.UserEmailSel(iUID);
                    if (sEmail != null && sEmail.Length > 4)
                    {
                        string sUrl = string.Format("EmailModify.aspx?Email={0}", sEmail);
                        Response.Redirect(sUrl, true);
                    }
                }
            }
            if (Request.HttpMethod == "POST")
            {
                string sBindEmail = CYRequest.GetFormString("EmailTwo");
                int    iNum       = UserInfoBLL.UserInfoUpdateOfEmail(sBindEmail, iUID);
                if (iNum > 0)
                {
                    //更新成功
                    sMsg = "<script>alert('邮箱绑定成功!');location.href='../Default.aspx';</script>";
                    return;
                }
                else
                {
                    //更新失败
                    sMsg = "<script>alert('邮箱绑定失败!');</script>";
                    return;
                }
            }
        }
コード例 #21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int iUID = GetUserID();

            if (!(LoginSessionVal() || isLoginCookie()))
            {
                Response.Redirect("../Default.aspx", true);
            }
            else
            {
                oEmail = CYRequest.GetString("Email");
                if (oEmail == "" || oEmail == "unsafe string")
                {
                    oEmail = UserInfoBLL.UserEmailSel(iUID);
                    if (oEmail.Length < 1)
                    {
                        Response.Redirect("EmailBind.aspx", true);
                    }
                }
            }
            if (Request.HttpMethod == "POST")
            {
                string sBindEmail = CYRequest.GetFormString("EmailTwo");
                int    iNum       = UserInfoBLL.UserInfoUpdateOfEmail(sBindEmail, iUID);
                if (iNum > 0)
                {
                    //更新成功
                    sMsg = "<script>alert('邮箱绑定成功!');location.href='../Default.aspx';</script>";
                    return;
                }
                else
                {
                    //更新失败
                    sMsg = "<script>alert('邮箱绑定失败!');</script>";
                    return;
                }
            }
        }
コード例 #22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.HttpMethod == "POST")
     {
         sAccount = CYRequest.GetFormString("username").Trim();
         string sPassWord = CYRequest.GetFormString("pwd").Trim();
         string sResult   = UserBll.LoginCheck(sAccount, sPassWord);
         if (sResult.Length < 1)
         {
             if (UserBll.UserAllVal(sAccount, sPassWord))
             {
                 string sPageUrl = Request.Url.ToString();
                 int    iUserID  = UserBll.UserIDSel(sAccount);
                 LoginStateSet(sAccount, iUserID, sPageUrl);
             }
             else
             {
                 sMsg = "<script>alert('登陆失败,用户名密码不正确!');location.href='ahxxc.html';</script>";
                 return;
             }
         }
         else
         {
             sMsg = string.Format("{0}<script>location.href='ahxxc.html';</script>", sResult);
             return;
         }
     }
     else if (LoginSessionVal() || isLoginCookie())
     {
         sAccount = GetAccount();
     }
     else
     {
         Server.Transfer("ahxxc.html", false);
     }
 }
コード例 #23
0
ファイル: Default.aspx.cs プロジェクト: bin1123/webgamesite
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.RequestType == "POST")
            {
                string sAccountVal = CYRequest.GetFormString("account").Trim();
                string sPassWord   = CYRequest.GetFormString("password").Trim();
                if (sAccountVal.Length < 4 && sPassWord.Length < 4)
                {
                    return;
                }
                string sState       = string.Empty;
                string sMD5PassWord = UserBll.PassWordMD5(sAccountVal, sPassWord);
                sState = UserBll.UserVal(sAccountVal, sMD5PassWord);
                string sWWWUrl = string.Format("{0}/{1}?un={2}", sWUrl, "usercookie.aspx", sAccountVal);
                string sKey    = ConfigurationManager.AppSettings["UserValKey"].ToString();
                string sBBSUrl = DiscuzUserI.BBSLogin(sAccountVal, sPassWord, sKey);
                string sJSUrl  = string.Format("<script src='{0}'></script><script src='{1}'></script>", sBBSUrl, sWWWUrl);
                if ("0" == sState)
                {
                    int    iUserID  = UserBll.UserIDSel(sAccountVal);
                    string sPageUrl = Request.Url.ToString();
                    LoginStateSet(sAccountVal, iUserID, sPageUrl);
                    string sGameName = CYRequest.GetFormString("gname");
                    if (sGameName != "" && sGameName != "unsafe string")
                    {
                        sMsg = string.Format("{0}<script>window.location.href='{1}/GCenter/PlayGame.aspx?gn={2}'</script>", sJSUrl, sRootUrl, sGameName);
                        return;
                    }
                    else
                    {
                        string sFormUrl = CYRequest.GetFormString("url");
                        sMsg = string.Format("{0}<script>window.location.href='{1}';</script>", sJSUrl, sFormUrl);
                        return;
                    }
                }
                else
                {
                    string sMD5PassWordNew = UserBll.PassWordMD5New(sAccountVal, sPassWord);
                    if ("0" == UserBll.UserVal(sAccountVal, sMD5PassWordNew))
                    {
                        int    iUserID  = UserBll.UserIDSel(sAccountVal);
                        string sPageUrl = Request.Url.ToString();
                        LoginStateSet(sAccountVal, iUserID, sPageUrl);
                        string sGameName = CYRequest.GetFormString("gname");
                        if (sGameName != "" && sGameName != "unsafe string")
                        {
                            sMsg = string.Format("{0}<script>window.location.href='{1}/GCenter/PlayGame.aspx?gn={2}'</script>", sJSUrl, sRootUrl, sGameName);
                            return;
                        }
                        else
                        {
                            string sFormUrl = CYRequest.GetFormString("url");
                            sMsg = string.Format("{0}<script>window.location.href='{1}';</script>", sJSUrl, sFormUrl);
                            return;
                        }
                    }
                    else
                    {
                        sUrl = CYRequest.GetFormString("url");
                        sMsg = "<script>alert('用户信息输入错误,验证失败!')</script>";
                        return;
                    }
                }
            }
            sGName = CYRequest.GetString("gn");
            string sGetUrl = CYRequest.GetString("url");

            if (sGetUrl == "" || sGetUrl == "unsafe string")
            {
                if (sGName != "" && sGName != "unsafe string")
                {
                    sUrl = string.Format("{0}/GCenter/PlayGame.aspx?gn={1}", sRootUrl, sGName);
                }
                else
                {
                    sUrl = string.Format("{0}/yhzx/", sWUrl);
                }
            }
            else
            {
                sUrl = sGetUrl;
            }
            if (LoginSessionVal() || isLoginCookie())
            {
                Response.Redirect(sUrl, true);
            }
        }
コード例 #24
0
        public void ProcessRequest(HttpContext context)
        {
            if (context.Request.HttpMethod == "POST")
            {
                string sFromHost = context.Request.UrlReferrer.Host;
                context.Response.Cookies["fromhost"].Value   = sFromHost;
                context.Response.Cookies["fromhost"].Expires = DateTime.Now.AddHours(1);
                string sAccount = CYRequest.GetFormString("quickaccount");//充值账号
                int    iUserID  = UserBll.UserIDSel(sAccount);
                if (iUserID < 1000)
                {
                    context.Response.Write("<script>alert('充值账号不存在!');</script>");
                    return;
                }

                string  sPayNums = CYRequest.GetFormString("quickpayprice");//充值金额
                decimal dPrice   = 0;
                decimal.TryParse(sPayNums, out dPrice);
                if (dPrice < 10)
                {
                    context.Response.Redirect("PayPErr.aspx?err=204");
                    return;
                }

                string sGameAbbre   = CYRequest.GetFormString("quickservername");
                string sGameIsLogin = PayAll.ValUserLoginGame(sGameAbbre, iUserID.ToString());
                if ("1" == sGameIsLogin)
                {
                    context.Response.Redirect("PayGErr.aspx?err=202");
                    return;
                }

                string sGameAbbreC = string.Empty;
                if (sGameAbbre.IndexOf("sq") == -1)
                {
                    sGameAbbreC = sGameAbbre;
                }
                else
                {
                    string sRoleID = CYRequest.GetFormString("quickrole");
                    sGameAbbreC = string.Format("{0}|{1}", sGameAbbre, sRoleID);
                }
                string sPhone    = CYRequest.GetFormString("quickphone");
                string sChannel  = CYRequest.GetFormString("quickchannel");
                int    iCount    = 1;
                string sBankName = string.Empty;
                if (sChannel == "ibank")
                {
                    sBankName = CYRequest.GetFormString("quickbank");
                }
                string sPayDirect = string.Empty;
                if (sChannel == "tenpay")
                {
                    string  sTranIP     = ProvideCommon.GetRealIP();
                    string  sPTranID    = TransPBLL.PointSalesInit(sChannel, sPhone, sAccount, dPrice, iCount, sTranIP);
                    decimal dFeeScale   = ChannelBLL.FeeScaleSel(sChannel);
                    int     iGamePoints = System.Convert.ToInt32(dPrice * 10 * dFeeScale);
                    int     iPayUserID  = UserBll.UserIDSel(sAccount);
                    string  sGTranID    = TransGBLL.GameSalesInit(sGameAbbre, iGamePoints, sAccount, sPhone, iPayUserID, sTranIP);
                    TranQuickBLL.TranQuickAdd(sGTranID, sPTranID);
                    sPayDirect = TenPayBuy.QuickPayBegin(sPTranID, sAccount, dPrice, sGameAbbreC, context);
                }
                else if (sChannel == "szfphone")
                {
                    string  sTranIP     = ProvideCommon.GetRealIP();
                    string  sPTranID    = TransPBLL.PointSalesInit(sChannel, sPhone, sAccount, dPrice, iCount, sTranIP);
                    decimal dFeeScale   = ChannelBLL.FeeScaleSel(sChannel);
                    int     iGamePoints = System.Convert.ToInt32(dPrice * 10 * dFeeScale);
                    int     iPayUserID  = UserBll.UserIDSel(sAccount);
                    string  sGTranID    = TransGBLL.GameSalesInit(sGameAbbre, iGamePoints, sAccount, sPhone, iPayUserID, sTranIP);
                    TranQuickBLL.TranQuickAdd(sGTranID, sPTranID);
                    string cardTypeCombine = CYRequest.GetFormString("quickcardTypeCombine");
                    sPayDirect = SzfPayBuy.QuickPayBegin(sPTranID, sAccount, dPrice, sGameAbbreC, "0", cardTypeCombine);
                }
                else
                {
                    sPayDirect = PayAll.QuickPay(sChannel, sPhone, sAccount, dPrice, iCount, sBankName, sGameAbbreC);
                }
                context.Response.Write(sPayDirect);
            }
        }
コード例 #25
0
ファイル: UPWordM.aspx.cs プロジェクト: bin1123/webgamesite
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!(LoginSessionVal() || isLoginCookie()))
     {
         Response.Redirect(string.Format("{0}/Default.aspx", sRootUrl), true);
         return;
     }
     else
     {
         int      iUserID     = GetUserID();
         DateTime dtLoginTime = GetLoginTime();
         if (!PWDUpdateBLL.PwdUpdateVal(iUserID, dtLoginTime))
         {
             ClearUsersInfo();
             Response.Redirect(string.Format("{0}/Default.aspx", sRootUrl), true);
             return;
         }
     }
     iPoints  = GetUPoints();
     sAccount = GetAccount();
     if (Request.HttpMethod == "POST")
     {
         int    iUserID    = GetUserID();
         string sPassWord  = CYRequest.GetFormString("passwordtwo");
         string sAccountC  = UserBll.AccountSel(iUserID).Trim();
         string sOPassWord = UserBll.PassWordMD5(sAccountC, CYRequest.GetFormString("bpassword"));
         int    iRes       = UserBll.PWDVal(iUserID, sOPassWord);
         if (iRes > 999)
         {
             string sMD5PassWord = UserBll.PassWordMD5(sAccountC, sPassWord);
             if (1 == UserBll.UserUpdatePWD(iUserID, sMD5PassWord))
             {
                 ClearUsersInfo();
                 sMsg = "<script>alert('修改密码成功!请重新登陆!');location.href='../Default.aspx';</script>";
             }
             else
             {
                 //更新失败
                 sMsg = "<script>alert('修改密码失败!');</script>";
             }
         }
         else
         {
             string sMD5PassWordNew = UserBll.PassWordMD5New(sAccountC, CYRequest.GetFormString("bpassword"));
             iRes = UserBll.PWDVal(iUserID, sMD5PassWordNew);
             if (iRes > 999)
             {
                 string sMD5PassWord = UserBll.PassWordMD5(sAccountC, sPassWord);
                 if (1 == UserBll.UserUpdatePWD(iUserID, sMD5PassWord))
                 {
                     ClearUsersInfo();
                     sMsg = "<script>alert('修改密码成功!请重新登陆!');location.href='../Default.aspx';</script>";
                 }
                 else
                 {
                     //更新失败
                     sMsg = "<script>alert('修改密码失败!');</script>";
                 }
             }
             else
             {
                 sMsg = "<script>alert('原始密码输入错误!');</script>";
             }
         }
     }
 }
コード例 #26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (LoginSessionVal() || isLoginCookie())
     {
         if (Request.HttpMethod == "POST")
         {
             int    iPayUserID = GetUserID();                            //支付游戏的账号
             string sAccount   = CYRequest.GetFormString("gameaccount"); //充值游戏账号
             string sGameAbbre = CYRequest.GetFormString("gameservername");
             int    iUserID    = UserBll.UserIDSel(sAccount);            //充值游戏数字账号
             if (iUserID < 1000)
             {
                 //sMsg = "<script>alert('充值游戏账号不存在!');location.href='default.aspx';</script>";
                 Response.Redirect("PayGErr.aspx?err=201");
                 return;
             }
             else
             {
                 string sGameIsLogin = PayAll.ValUserLoginGame(sGameAbbre, iUserID.ToString());
                 if ("1" == sGameIsLogin)
                 {
                     //sMsg = "<script>alert('充值的游戏未创建角色,请先创建角色!谢谢!');location.href='default.aspx';</script>";
                     Response.Redirect("PayGErr.aspx?err=202");
                     return;
                 }
             }
             string sPhone      = CYRequest.GetFormString("gamephone");
             string sPayNums    = CYRequest.GetFormString("gamepaynums"); //平台币充值到游戏
             string sPayAccount = GetAccount();                           //支付平台币账号
             int    iPayPoints  = 0;
             int.TryParse(sPayNums, out iPayPoints);
             int iPUserPoints = UserPointsBLL.UPointAllSel(iPayUserID);
             if (iPUserPoints > 0)
             {
                 if (!UserPointsBLL.UPointCheck(iPayUserID))
                 {
                     //sMsg = "<script>alert('网络繁忙!武林币获取失败!请一会在试,谢谢!');location.href='default.aspx';</script>";
                     Response.Redirect("PayGErr.aspx?err=203");
                     return;
                 }
             }
             else
             {
                 //sMsg = "<script>alert('账号余额为0!请充值武林币!');location.href='default.aspx';</script>";
                 Response.Redirect("PayGErr.aspx?err=204");
                 return;
             }
             if (iPUserPoints >= iPayPoints && (iPayPoints > 79 || iPayUserID < 10000))
             {
                 string sReturn = string.Empty;
                 if (sGameAbbre.IndexOf("sq") == -1)
                 {
                     sReturn = PayAll.GamePay(sGameAbbre, iPayUserID, sPayAccount, iPayPoints, sPhone, iUserID);
                 }
                 else
                 {
                     string sRoleID = CYRequest.GetFormString("gamerole");
                     if (sRoleID == "" || sRoleID == "unsafe string")
                     {
                         //sMsg = "<script>alert('角色名错误!');location.href='default.aspx';</script>";
                         Response.Redirect("PayGErr.aspx?err=205");
                         return;
                     }
                     else
                     {
                         sReturn = PayAll.sqPay(sGameAbbre, iPayUserID, sPayAccount, iPayPoints, sPhone, iUserID, sRoleID);
                     }
                 }
                 string sRes = sReturn.Split('|')[0];
                 if (sRes == "0")
                 {
                     Server.Transfer(string.Format("PayGSucc.aspx?gname={0}&TranID={1}&gn={2}", sGameAbbre, sReturn.Split('|')[1], sGameAbbre));
                 }
                 else
                 {
                     //sMsg = "<script>alert('游戏充值失败,如有问题请联系客服!');location.href='default.aspx';</script>";
                     Response.Redirect("PayGErr.aspx?err=206");
                     return;
                 }
             }
             else
             {
                 SetPoints(iPUserPoints);
                 //sMsg = "<script>alert('账号余额不足!请充值武林币!');location.href='default.aspx';</script>";
                 Response.Redirect("PayPErr.aspx?err=204");
                 return;
             }
         }
     }
     else
     {
         //sMsg = "<script>alert('充值账号不存在!');location.href='default.aspx';</script>";
         Response.Redirect("PayGErr.aspx?err=201");
         return;
     }
 }
コード例 #27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (LoginSessionVal() || isLoginCookie())
     {
         if (Request.HttpMethod == "POST")
         {
             int      iUserID     = GetUserID();
             DateTime dtLoginTime = GetLoginTime();
             string   sBackUrL    = Request.UrlReferrer.ToString();
             string   sHost       = Request.UrlReferrer.Host;
             string   sGoUrL      = string.Format("http://{0}/user.html", sHost);
             if (!PWDUpdateBLL.PwdUpdateVal(iUserID, dtLoginTime))
             {
                 ClearUsersInfo();
                 string sToUrl = string.Format("http://{0}/usercookie.aspx?type=del&GoUrl={1}", sHost, sGoUrL);
                 Response.Redirect(sToUrl, true);
                 return;
             }
             string sPassWord  = CYRequest.GetFormString("passwordtwo");
             string sAccountC  = GetAccount();
             string sOPassWord = UserBll.PassWordMD5(sAccountC, CYRequest.GetString("bpassword"));
             int    iRes       = UserBll.PWDVal(iUserID, sOPassWord);
             if (iRes > 999)
             {
                 string sMD5PassWord = UserBll.PassWordMD5(sAccountC, sPassWord);
                 if (1 == UserBll.UserUpdatePWD(iUserID, sMD5PassWord))
                 {
                     ClearUsersInfo();
                     string sToUrl = string.Format("http://{0}/usercookie.aspx?type=del&GoUrl={1}", sHost, sGoUrL);
                     Response.Write(string.Format("<script>alert('修改密码成功!请重新登陆!');location.href='{0}';</script>", sToUrl));
                 }
                 else
                 {
                     Response.Write(string.Format("<script>alert('修改密码失败!');location.href='{0}';</script>", sBackUrL));
                 }
             }
             else
             {
                 string sMD5PassWordNew = UserBll.PassWordMD5New(sAccountC, CYRequest.GetFormString("bpassword"));
                 iRes = UserBll.PWDVal(iUserID, sMD5PassWordNew);
                 if (iRes > 999)
                 {
                     string sMD5PassWord = UserBll.PassWordMD5(sAccountC, sPassWord);
                     if (1 == UserBll.UserUpdatePWD(iUserID, sMD5PassWord))
                     {
                         ClearUsersInfo();
                         string sToUrl = string.Format("http://{0}/usercookie.aspx?type=del&GoUrl={1}", sHost, sGoUrL);
                         Response.Write(string.Format("<script>alert('修改密码成功!请重新登陆!');location.href='{0}';</script>", sToUrl));
                     }
                     else
                     {
                         Response.Write(string.Format("<script>alert('修改密码失败!');location.href='{0}';</script>", sBackUrL));
                     }
                 }
                 else
                 {
                     Response.Write(string.Format("<script>alert('原始密码错误!');location.href='{0}';</script>", sBackUrL));
                 }
             }
         }
     }
 }