Customs/base/Excel_Templates.aspx.cs
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;
using EKETEAM.Data;
using EKETEAM.FrameWork;
using LitJson;
namespace eFrameWork.Customs.Base
{
public partial class Excel_Templates : System.Web.UI.Page
{
public string UserArea = "Application";
public string act = eParameters.Request("act");
public string ModelID = eParameters.Request("ModelID");
public string AppItem = eParameters.Request("AppItem");
public eUser user;
public eModel model;
private string basePath = "";//当前目录
public string path = eParameters.QueryString("path");
string aspxFile = eBase.getAspxFileName();
string type = eParameters.QueryString("type");
public string ajax = eParameters.QueryString("ajax");
public eExtensionsList allowExts = new eExtensionsList(".xls.xlsx.zip");//.csv
protected void Page_Load(object sender, EventArgs e)
{
user = new eUser(eBase.getUserArea(UserArea));
user.Check();
eModelInfo customModel = new eModelInfo(user);
model = customModel.Model;
basePath = eRunTime.excelTemplatesPath;
if (!Directory.Exists(basePath)) Directory.CreateDirectory(basePath);
if (path.IndexOf("..") > -1) path = "";//禁止越权上级目录
if (path.Length > 0) path = path.toUrlFormat();
if (path.EndsWith("/")) path = path.Substring(0, path.Length - 1);
if (!Directory.Exists(basePath + path.toLocalFormat())) path = "";
if (path.Length > 0) basePath += path.toLocalFormat() + "\\";
#region 安全性
if (act.Length > 0 && (Request.UrlReferrer == null || Request.Url.Host.ToLower() != Request.UrlReferrer.Host.ToLower()))
{
//Response.Write("访问未被许可!");
//Response.End();
}
#endregion
#region 操作
string filepath = "";
string oldname = "";
string newname = "";
后面还有 336 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
