WebUI/systems/setpwd.aspx.cs

(开头部分) 2KB

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

namespace hyst.systems
{
    using DBUtility;
    using Model;
    using System;
    using System.Data;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class setpwd : Page
    {
        private BaseClass bc = new BaseClass();
        protected Button Button2;
        protected HtmlGenericControl divtool;
        protected HtmlForm form1;
        protected HtmlHead Head1;
        protected HtmlInputPassword txtPassword;
        protected HtmlInputPassword txtPasswords;

        protected void Button2_Click(object sender, EventArgs e)
        {
            try
            {
                string sqladd;
                if (base.Request.QueryString["anum"] == null)
                {
                    sqladd = "update  admininfo set aPwd='" + DESEncrypt.Encrypt(this.txtPasswords.Value) + "' where aNum ='" + PublicMethod.GetSessionValue("nums") + "'";
                    this.bc.execsql(sqladd);
                }
                else
                {
                    sqladd = "update  admininfo set aPwd='" + DESEncrypt.Encrypt(this.txtPasswords.Value) + "' where aNum ='" + base.Request.QueryString["anum"].ToString() + "'";
                    this.bc.execsql(sqladd);
                }
                DataTable dt = this.bc.ReadTable("select * from admininfo where aNum ='" + base.Request.QueryString["anum"].ToString() + "'");
                string str = "用户编号:" + base.Request.QueryString["anum"].ToString() + ",用户姓名:" + dt.Rows[0]["aName"].ToString();
                string strl = " insert into WorkNote(Wn_Person,Wn_Time,Wn_type,wn_dianpu,wn_ip,wn_Remark) values ('" + PublicMethod.GetSessionValue("names") + "','" + DateTime.Now.ToString() + "','修改用户密码','" + PublicMethod.GetSessionValue("shopnum") + "','" + Userinfo.getIPAddress() + "','" + str + "')";
                this.bc.execsql(strl);
            }
            catch
            {
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                if (base.Request.QueryString["anum"] == null)
                {
                    this.divtool.Visible = true;
                }
                else
                {
                    this.divtool.Visible = false;
                }
            }
        }
    }
后面还有 2 行代码,购买后查看完整代码

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

AI 解读

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

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