WELOA.Web/admin/login_manager.aspx.cs
(开头部分) 16KB这里只显示每个文件的开头 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.Data;
using WELOA.Model;
using System.Web.Security;
using System.IO;
namespace Web.admin
{
public partial class login_manager : System.Web.UI.Page
{
private LS_Departmentandpost DepartmentandPostBLL = new LS_Departmentandpost();
private DataSet ds = null;
private DateSetInformation dsinfo = null;
private LS_Manager managerBLL = new LS_Manager();
private int nPage;
private int Record_Per_Page;
private string strPageName;
private string strStaff;
protected void btAdd_Click(object sender, EventArgs e)
{
if (this.Session["rank"] != null)
{
if (this.Session["rank"].ToString() != "超级管理员")
{
base.Response.Write("<script language=javascript >alert('您没有修改权限。')</script>");
return;
}
}
else
{
this.Session.Clear();
base.Response.Write("<script language=javascript >window.parent.location.href='default.aspx'</script>");
}
string strLoginName = this.tbAddLoginName.Text.Trim();
string strPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(FormsAuthentication.HashPasswordForStoringInConfigFile(this.tbAddPassword.Text.Trim(), "MD5"), "MD5");
string strManagerName = this.tbAddManagerName.Text.Trim();
string strManagerId = this.tbAddManagerId.Text.Trim();
string text = this.ddlAddRank.Text;
string strZhuangtai = this.ddlAddZhuangtai.Text;
Polytechnic Polytechnic = this.managerBLL.inssmanager(strLoginName, strPassword, strManagerName, strManagerId, text, strZhuangtai);
if (Polytechnic.nException > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('系统出现异常15,请联系管理员处理。')</script>");
}
else if (Polytechnic.rowscount > 0)
{
this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('登录名或证件号已经存在。不能重复添加。')</script>");
后面还有 299 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
