Web/kzcms/core/_404.aspx.cs
(完整代码) 1KBusing System;
using System.IO;
using Kscor.TemplateEngine;
namespace Web.core
{
public partial class _404 : System.Web.UI.Page
{
private VelocityHelper vh = null;
private string templatePath = "", themeurl = "";
private Kscor.Model.Config ModelConfig = new Kscor.BLL.Config().GetMaxModel();
protected void Page_Load(object sender, EventArgs e)
{
string CookieTheme = Kscor.Common.CookieHelper.GetCookieValue("Theme");
if (ModelConfig == null)
{
Response.Write("系统配置出错");
}
else
{
string MyTheme = CookieTheme == "" ? ModelConfig.Theme : CookieTheme;
themeurl = string.Format("/kzcms/themes/{0}/", MyTheme);
templatePath = Server.MapPath(themeurl);
if (!Directory.Exists(templatePath))
{
Response.Write(string.Format("主题{0}不存在!", MyTheme));
}
else
{
vh = new VelocityHelper(templatePath);
vh.themeurl = themeurl;
vh.ModelConfig = ModelConfig;
vh.NotFound();
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
