App_Code/login.cs

(开头部分) 1KB

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

using System;
using System.Data;

namespace Sp
{
	/// <summary>
	/// login 的摘要说明。
	/// </summary>
	public class login
	{   public static string Biao="sp_user";
        public login()
        { }
		public static void lo(string usn,string pwd)
		{
			string sql="SELECT id FROM "+Biao+" where UserName='"+usn+"' and UserPassword='"+pwd+"'";
			DataTable dt=Sp.Base.ExecuteSql4Ds(sql).Tables[0];
			if (dt.Rows.Count>0)
			{
				System.Web.HttpContext.Current.Session["Uid"]=dt.Rows[0]["ID"];
                System.Web.HttpContext.Current.Response.Write("<script>location.href='List.aspx';top.Left.location.href='Userinfo.aspx';</script>");
			}
			else
			{System.Web.HttpContext.Current.Response.Redirect("msg.aspx?msg=您的用户名或密码错误,请核对后再登陆!");}
			
		}
		public static void chlog()
		{
			if (System.Web.HttpContext.Current.Session["Uid"]==null)
			{Out();}
			
		}

		public static void adminlo(string usn,string pwd)
		{
			string sql="SELECT id FROM Bet_admincenter where adminName='"+usn+"' and adminPass='"+pwd+"'";
			DataTable dt=Sp.Base.ExecuteSql4Ds(sql).Tables[0];
			if (dt.Rows.Count>0)
			{
				System.Web.HttpContext.Current.Session["AdminUid"]=dt.Rows[0]["ID"];
                System.Web.HttpContext.Current.Response.Write("<script>top.location.href='../adminmain.aspx';</script>");
			}
			else
			{
                //Sp.Functions.JsAlerT("您的用户或密码错误,请核对后再登陆!");;
            }
			
		}

		public static void adminch()
		{
			if (System.Web.HttpContext.Current.Session["AdminUid"]==null)
			{Out();}
			
		}
		public static void Out()
		{   
			System.Web.HttpContext.Current.Session.Clear();
            System.Web.HttpContext.Current.Response.Write("<script>top.location.href='../adminmain.aspx';</script>");
			System.Web.HttpContext.Current.Response.End();
		}
后面还有 2 行代码,解锁后查看完整代码

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

AI 解读

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

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