Admin/NClass/TempleMod.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Linq;
using System.IO;
using System.Text;
using System.Web.Configuration;
using Models;
public partial class TempleMod : AdminBase
{
protected string file = "";
private string lockpath = "~/"+WebConfigurationManager.AppSettings["skin"];
protected void BindData()
{
if (!string.IsNullOrEmpty(this.file) && this.file.IndexOf(lockpath) > -1 && !(this.file.IndexOf("../") > -1))
{
this.Labelname.Text = this.file;
string content = ReadFile(base.Server.MapPath(this.file));
this.Content.Text = content;
}
using (Entities bll = new Entities())
{
var m =bll.L_Tags;
foreach (var n in m)
{
DDzdy.Items.Add(new ListItem(n.TName.ToString(), "{$use_" + n.TName.ToString() + "$}"));
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(this.file) && this.file.IndexOf(lockpath) > -1 && !(this.file.IndexOf("../") > -1))
{
string content = this.Content.Text;
WriteFile(base.Server.MapPath(this.file), content);
Response.Write("<script> var Close=1;</script>");
}
}
protected void Page_Load(object sender, EventArgs e)
{
this.file = getString(base.Request, "file");
if (!base.IsPostBack)
{
this.BindData();
}
}
后面还有 58 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
