YKT_EShop/Admin/Picture/Picture_Manage_Dialog_2.cs

(开头部分) 22KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_Common.FileManager;
using System.IO;
using System.Web.UI.HtmlControls;
namespace YKT_EShop.Admin.Picture
{
    public partial class Picture_Manage_Dialog_2 : System.Web.UI.Page
    {
        private string str_dirMana = "";
        private string str_dirFile = "";  //获取图片或者文件路径
        private string str_FilePath = "";
        bool tf = false;
        protected HtmlGenericControl addfiledir;
        protected HtmlGenericControl File_List;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["FileType"] == "pic")
            {
                str_dirFile = "uploadfiles";
                tf = true;
            }
            else if (Request.QueryString["FileType"] == "file")
            {
                str_dirFile = "file";
                tf = false;
            }
            else
                str_dirFile = "template";


            Response.CacheControl = "no-cache";
            if (str_dirMana != "" && str_dirMana != null && str_dirMana != string.Empty)//判断虚拟路径是否为空,如果不是则加上//
                str_dirMana = "//" + str_dirMana;
            string type = Request.Form["Type"];
            str_FilePath = Server.MapPath("~/Uploadfiles");
            string Path = str_FilePath + Request.Form["Path"];
            string ParentPath = str_FilePath + Request.Form["ParentPath"]; //父级
            try
            {
                if (Path.IndexOf(str_FilePath, 0) == -1 || ParentPath.IndexOf(str_FilePath, 0) == -1)
                    Response.End();
            }
            catch { }

            switch (type)
            {
                case "EidtDirName":     //修改文件夹名称
                    EidtDirName(Path);
                    break;
                case "EidtFileName":    //修改文件名称
                    EidtFileName(Path);
                    break;
                case "DelDir":          //删除文件夹
                    DelDir(Path);
                    break;
后面还有 483 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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