WELOA.Web/admin/default.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LSBLL;
using System.Web.Security;
using WELOA.Model;
using WELOA.Common;
namespace Web.admin
{
public partial class _default : System.Web.UI.Page
{
private LS_Manager adm = new LS_Manager();
private LS_System systemBLL = new LS_System();
protected void imgLogin_Click(object sender, ImageClickEventArgs e)
{
if (this.tbValidate.Visible)
{
if (this.Session["CheckCode"] != null)
{
if (this.tbValidate.Text.Trim() != this.Session["CheckCode"].ToString())
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('验证码输入不正确')</script>");
this.tbPassword.Text = "";
this.tbValidate.Text = "";
this.Page.SetFocus(this.tbPassword);
}
}
else
{
base.Server.Transfer("default.aspx");
}
}
this.Session["CheckCode"] = null;
string userName = this.tbUserName.Text.Trim();
string password = FormsAuthentication.HashPasswordForStoringInConfigFile(FormsAuthentication.HashPasswordForStoringInConfigFile(this.tbPassword.Text.Trim(), "MD5"), "MD5");
ManageInformation _managersinfo = this.adm.adminlogin(userName, password, base.Request.UserHostAddress.ToString());
if (_managersinfo.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常3。')</script>");
}
else
{
if (_managersinfo.nException == 1)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常4。')</script>");
}
switch (_managersinfo.errormessage)
{
case 0:
this.Session["managersloginname"] = _managersinfo.managersloginname;
this.Session["rank"] = _managersinfo.rank;
后面还有 107 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
