Views/UserCenter/RolePerms.ashx
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="RolePerms" %>
using System;
using System.Web;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using MicroDBHelper;
using MicroDTHelper;
using MicroPublicHelper;
using Newtonsoft.Json.Linq;
using MicroJsonHelper;
using System.Collections.Generic;
using MicroAuthHelper;
public class RolePerms : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
MicroAuth.CheckLogin();
string flag = MicroPublic.GetMsg("DenyUrlParaError"),
Action = context.Server.UrlDecode(context.Request.Form["action"]),
MID = context.Server.UrlDecode(context.Request.Form["mid"]),
RID = context.Server.UrlDecode(context.Request.Form["id"]),
Fields = context.Server.UrlDecode(context.Request.Form["fields"]);
//Action = "getroleperms";
//Fields = "%5B%7B%22id%22:23,%22title%22:%22MainNav%20--%20%E3%80%90%E6%9D%83%E9%99%90%E3%80%91%22,%22spread%22:true,%22field%22:%22%22,%22children%22:%5B%7B%22id%22:23,%22title%22:%22%E6%B5%8F%E8%A7%88%22,%22spread%22:true,%22field%22:%22113%22%7D%5D%7D%5D";
//RID = "1";
try
{
if (!string.IsNullOrEmpty(Action))
{
Action = Action.ToLower();
if (Action == "getroleperms" && !string.IsNullOrEmpty(RID))
flag = GetMainMenu(RID);
if (Action == "modify" && !string.IsNullOrEmpty(RID) && !string.IsNullOrEmpty(Fields))
flag = ModifyRolePermissions(RID, Fields);
if (Action == "modifyalias" && !string.IsNullOrEmpty(Fields))
flag = ModifyAlias(Fields);
}
}
catch (Exception ex)
{
flag = ex.ToString();
}
context.Response.Write(flag);
}
/// <summary>
/// 显示主模块和可操作权限
后面还有 382 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
