WeiWeiXinNet/weiweiupdata.ashx.cs

(开头部分) 4KB

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

 
using System;
using System.Web;

public class weiweiupdata : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {

        //读取的时候
        HttpCookie cookie2 = context.Request.Cookies["weiweixing"];

        if (cookie2 == null)
        {
            context.Response.Redirect("login.aspx");
            return;
        }

        string name = cookie2.Values["name"];
        if (name == null)
        {
            context.Response.Redirect("login.aspx");
            return;
        }

        string md5 = cookie2.Values["md5"];
        if (md5 == null)
        {
            context.Response.Redirect("login.aspx");
            return;
        }
        
        

        //   context.Response.ContentType = "text/plain";
        //   context.Response.Write("Hello World"); Response.Write("<br />" + Request.Files[0].FileName);

        string Path1 = context.Server.MapPath("~");
        string Path2 = context.Server.MapPath(".");

        string host = context.Request.ServerVariables["HTTP_HOST"] + context.Request.ServerVariables["PATH_INFO"];

        host = host.Replace("weiweiupdata.ashx", "");

        // "http://" + host + "/WebSurvey/m.aspx";

        try
        {
            HttpPostedFile uploads = context.Request.Files["upload"];
            string CKEditorFuncNum = context.Request["CKEditorFuncNum"];

            if (uploads == null || CKEditorFuncNum == null)
            {
                return;
            }

            string PathDir = System.IO.Path.Combine(context.Server.MapPath("."), "USER_DIR\\IMGUP");

            if (System.IO.Directory.Exists(PathDir) == false)
后面还有 83 行代码,购买后查看完整代码

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

AI 解读 AI

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

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