Publics/FileUploadF.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

namespace 客户订单管理2
{
    public partial class FileUploadF : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 权限检查
            if (Session["login"] == null || Session["login"].ToString() != "true")
            {
                Response.Write("<script>top.location.href='../Default.aspx';</script>");
                Response.End();
                return;
            }
            if (!系统.权限检查(Session["pageTitle"].ToString(), Session["username"].ToString(), Session["userclass"].ToString()))
            {
                Response.Write("<script>alert('缺少访问权限 !(请联系管理员)');</script>");
                Response.Write("<script>history.go(-1);</script>");
                Response.End();
                return;
            }
            #endregion
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            #region 用户自定义_提交前

            #endregion

            if (!FileUpload1.HasFile)
            {
                Response.Write("<script>window.close();</script>");
                return;
            }
            string tableName = Request.QueryString["Table"].ToString();
            tableName = 系统.解密(tableName.Replace("_", "+"), 系统.key1, 系统.iv1);
            string fieldName = Request.QueryString["Field"].ToString();
            fieldName = 系统.解密(fieldName.Replace("_", "+"), 系统.key1, 系统.iv1);
            string keyName = Request.QueryString["Key"].ToString();
            keyName = 系统.解密(keyName.Replace("_", "+"), 系统.key1, 系统.iv1);
            string keyValue = Session["keyValue"].ToString();
            string cPath = Server.MapPath("../DownLoad_3PX0TMP31/" + tableName + "/") + fieldName;
            if (!Directory.Exists(cPath))
            {
                Directory.CreateDirectory(cPath);
            }
            bool isAdd = true;
            try
            {
后面还有 52 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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