Web/kzcms/admin/Server/Config.ashx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Web;
using System.Text;
using System.Reflection;
using System.Web.SessionState;
namespace Web.admin.Server
{
/// <summary>
/// Config 的摘要说明
/// </summary>
public class Config : IHttpHandler, IRequiresSessionState
{
private string Act = Kscor.Common.DNTRequest.GetString("Act");
private string html = string.Empty;
private Kscor.BLL.Config BLLConfig = new Kscor.BLL.Config();
public void ProcessRequest(HttpContext context)
{
if (Kscor.BLL.Session.CheckPurview("高级管理员"))
{
switch (Act)
{
case "Get":
html = Get();
break;
case "Update":
html = Update();
break;
case "UpdateTheme":
html = UpdateTheme();
break;
default:
html = Kscor.Common.JsonHelper.ToJson("0", "参数错误");
break;
}
}
else
{
html = Kscor.Common.JsonHelper.ToJson("0", "没有权限访问");
}
context.Response.Write(html);
context.Response.End();
}
private string Get()
{
StringBuilder html = new StringBuilder();
Kscor.Model.Config ModelConfig = BLLConfig.GetMaxModel();
if (ModelConfig == null)
{
html.Append(Kscor.Common.JsonHelper.ToJson("0", "没有内容"));
}
else
{
if (string.IsNullOrEmpty(ModelConfig.Url))
{
ModelConfig.Url = string.Format("http://{0}", System.Web.HttpContext.Current.Request.Url.Authority);
}
string value = "";
后面还有 105 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
