Admin/system/!/rms/role/Default.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;

[UAP.Role]
public partial class __uap_Role_Default : UAP.UI.TreePage
{
    #region Tree
    protected override string Table
    {
        get
        {
            return "uap_role";
        }
    }

    protected override string Columns
    {
        get
        {
            return base.Columns + ",g=(select top 1 1 from uap_permissions where ir=tree.id),lv=_level_";
        }
    }

    /// <summary>
    /// 读取机构权限, 如需修改, 请 return base.Condition +  and 新条件
    /// </summary>
    protected override string Condition
    {
        get
        {
            string con = "id>=0";
            if (UAP.Role.isTopAdmin) return con;
            return string.Format(con + " and (_sysid_='{0}' or _sysid_ like '{0}|%')", UAP.Role._Role_Sysid_);
        }
    }
    #endregion;

    #region Edit

    public void edit()
    {
        UAP.JSON x = UAP.JSON.NEW.Include(Request.QueryString).CheckType<int>("itype");
        Server.Execute("edit/" + x["itype"] + ".aspx");
    }


    [UAP.Attr.HttpJson]
    public dynamic save(UAP.JSON data)
    {
        string id = Current.REFERER_QUERY_STRING("$");
        int oplog;
        switch (data.Int("itype"))
        {
            case 2:
                if (data.ContainsKey("userpass"))
                {
                    data["userpass"] = UAP.Function.String.MD5(data["userpass"]);
                }
                if (data.String("username").Length > 0)
                {
                    int uid = DataBase.Parameterization.Include(data, "username").db_getValue("select top 1 id from uap_role where itype=2 and username=@username", 0);
后面还有 105 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。