Web/tlogin.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*********************************************************************
 * CopyRight (c) 2009-2010 HangJing Teconology. All Rights Reserved.
 * Function : 用户登录
 *  at 2009-7-24 15:49:47.
 
*********************************************************************/
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Text;
using System.Net;
using System.IO;

using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;

public partial class tlogin : System.Web.UI.Page
{
    Points dal = new Points();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["out"] != null)
        {
            UserHelp.Logout_Togo();
            Response.Redirect("index.aspx");
        }
       
    }

    protected void Login_Click(object sender, EventArgs e)
    {
        string name = tbemail.Value;
        string p = WebUtility.GetMd5(tbpassword.Value);
        string url = "~/shop/myindex.aspx";
        PointsInfo model = dal.GetModel(name, p);
        if (model != null)
        {
            if (Request["returnurl"] != null)
            {
                string myUrl = Server.UrlDecode(HttpContext.Current.Request.Url.Query);
                int location = myUrl.IndexOf('=');
                myUrl = myUrl.Substring(location + 1);
                if (myUrl.IndexOf('?') < 0)
                {
                    myUrl = myUrl.Replace('&', '?');
                }
                url = myUrl;
            }
           UserHelp.SetLogin_Togo(model);
            Response.Redirect(url);
后面还有 7 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。