Backup/WebApp/Admin/AdminBasic.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Collections;
using System.Collections.Specialized;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace RM.WebApp.Admin
{
public partial class AdminBasic : System.Web.UI.Page
{
public static Hashtable UserAuthority;
public AdminBasic()
{
this.Load += new EventHandler(this.Basic_Load);
}
private void Basic_Load(object sender, System.EventArgs e)
{
//检查是否已登录.
RM.BLL.Admin.IsLogin();
}
protected void IsAuthority(int aType)
{
string[] arrUrl = Request.Url.PathAndQuery.Split('/');
string strUrl = arrUrl[arrUrl.Length - 1].ToLower();
int result = 0;
if (strUrl != "default.aspx")
{
int[] rights = (int[])UserAuthority[strUrl];
if (rights != null && rights[aType] == 1)
return;
arrUrl = strUrl.Split('?');
if (arrUrl.Length > 1)
{
strUrl = arrUrl[0] + "?" + arrUrl[1].Split('=')[0] + "=[*]";
rights = (int[])UserAuthority[strUrl];
if (rights != null && rights[aType] == 1)
return;
}
Response.Redirect("NoRight.html", true);
}
}
protected byte[] EnCodeModule()
{
Hashtable result = new Hashtable();
foreach (string str in Request.Form)
{
string tmpstr = str.ToLower();
if (tmpstr.IndexOf(".aspx") == -1) continue;
string[] res = Request.Form.GetValues(str);
int[] rights = { 0, 0, 0, 0 };
foreach (string val in res)
{
rights[Convert.ToInt32(val)] = 1;
}
result.Add(tmpstr, rights);
后面还有 102 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。