WebSite/Handlers/Login.aspx.cs

(开头部分) 21KB

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

using BLL;
using BLL.common;
using BLL.Order;
using BLL.system;
using Common;
using Model;
using Model.common;
using System;
using System.Configuration;
using System.IO;
using System.Net;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
namespace CRMSYS.Handlers
{
    public partial class Login : Page
    {
        [DllImport("Iphlpapi.dll")]
        private static extern int SendARP(int dest, int host, ref long mac, ref int length);
        [DllImport("Ws2_32.dll")]
        private static extern int inet_addr(string ip);
        protected void Page_Load(object sender, EventArgs e)
        {
            string text = base.Request["Method"].ToString();
            switch (text)
            {
                case "Login":
                    {
                        string IPAddress = HttpContext.Current.Request.UserHostAddress.ToString();
                        string MACAddress = this.GetMac();
                        TCWL_M_UserInfo userinf = new TCWL_M_UserInfo();
                        userinf.userName = base.Request.Form["userName"].ToString();
                        userinf.userMM = base.Request.Form["passWord"].ToString();
                        userinf.IPAddress = IPAddress;
                        userinf.MACAddress = MACAddress;
                        TCWL_B_UserLog log = new TCWL_B_UserLog();
                        string srvid = "";
                        string au = "";
                        string mm = "";
                        string ID_log = "";
                        string returnValue = log.userLog(userinf, out srvid, out au, out mm, out ID_log);
                        userinf.serviceID = DESEncrypt.Encrypt(srvid);
                        if (returnValue == "success")
                        {
                            HttpCookie cookie_id = new HttpCookie("TCWL_Time");
                            cookie_id.Values.Add("time", ID_log);
                            HttpCookie cookie = new HttpCookie("userinf_tcwl");
                            cookie.Values.Add("userid", userinf.userName);
                            cookie.Values.Add("serviceid", userinf.serviceID);
                            HttpCookie cookie2 = new HttpCookie("TCWL_All");
                            string au2 = Regex.Replace(au, "[\\u4e00-\\u9fa5]+", "");
                            cookie2.Values.Add("au", au2);
                            base.Response.AppendCookie(cookie);
                            base.Response.AppendCookie(cookie2);
                            base.Response.AppendCookie(cookie_id);
                            if (base.Request.Form["rememberme"] != null)
                            {
                                HttpCookie corem = base.Request.Cookies["tcwl_remember"];
后面还有 393 行代码,购买后查看完整代码

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

AI 解读 AI

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

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