Web/kzcms/admin/k_config/modify.aspx.cs
(完整代码) 1KBusing System;
using System.Web;
namespace Web.admin.k_config
{
public partial class modify : System.Web.UI.Page
{
public string Feedback = "";
public string Search = "";
public string List = "";
public string ListPage = "";
public string Article = "";
protected void Page_Load(object sender, EventArgs e)
{
LoadRewrite();
}
private void LoadRewrite()
{
string urlFilePath = HttpContext.Current.Server.MapPath(Kscor.Common.Config.RewriteUrl);
System.Xml.XmlDocument xml = new System.Xml.XmlDocument();
xml.Load(urlFilePath);
System.Xml.XmlNode root = xml.SelectSingleNode("rewrite");
foreach (System.Xml.XmlNode n in root.ChildNodes)
{
if (n.NodeType != System.Xml.XmlNodeType.Comment && n.Name.ToLower() == "item")
{
switch (n.Attributes["type"].Value)
{
case "Feedback": Feedback = n.Attributes["url"].Value; break;
case "Search": Search = n.Attributes["url"].Value; break;
case "List": List = n.Attributes["url"].Value; break;
case "ListPage": ListPage = n.Attributes["url"].Value; break;
case "Article": Article = n.Attributes["url"].Value; break;
}
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
