Views/Set/Navigation.ashx
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="Navigation" %>
using System;
using System.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using Newtonsoft.Json.Linq;
using MicroPublicHelper;
using MicroAuthHelper;
public class Navigation : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string flag = MicroPublic.GetMsg("SubmitFailed"),
Action = context.Server.UrlDecode(context.Request.Form["action"]),
MID = context.Server.UrlDecode(context.Request.Form["mid"]),
Fields = context.Server.UrlDecode(context.Request.Form["fields"]);
if (!string.IsNullOrEmpty(Action) && !string.IsNullOrEmpty(MID) && !string.IsNullOrEmpty(Fields))
{
if (Action.Trim().ToLower() == "add")
flag = GetAdd(MID.Trim(), Fields.Trim());
}
context.Response.Write(flag);
}
private string GetAdd(string MID, string Fields)
{
string flag = MicroPublic.GetMsg("AddFailed"), ParentID = string.Empty, Sort = string.Empty, ModuleName = string.Empty, URL = string.Empty, Icon = string.Empty, Show = string.Empty, Expand = string.Empty, Form = string.Empty, Level = string.Empty, LevelCode = string.Empty, Description = string.Empty, Disable = string.Empty;
int intParentID = 0, intSort = 0, intLevel = 0, intResult = 0;
Boolean bitShow = false, bitExpand = false, bitForm = false, bitDisable = false;
try
{
dynamic json = JToken.Parse(Fields) as dynamic;
ParentID = json["selParentID"];
if (string.IsNullOrEmpty(ParentID))
ParentID = "0";
intParentID = int.Parse(ParentID);
Sort = json["txtSort"];
intSort = int.Parse(Sort.Trim());
ModuleName = json["txtModuleName"];
ModuleName = ModuleName.Trim();
URL = json["txtURL"];
URL = URL.Trim();
后面还有 111 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
