Пример #1
0
        protected override void OnInitComplete(EventArgs e)
        {
            _adminPage        = true;
            AnonymousRedirect = true;

            base.OnInitComplete(e);

            if (!ConfigGlobal_Arsenal.IsPluginAdmin(UID))
            {
                Response.Redirect("Default.aspx");
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (UserID == -1)
            {
                phAnonymous.Visible = true;
            }
            else
            {
                phAnonymous.Visible = false;
            }

            if (ConfigGlobal_Arsenal.IsPluginAdmin(UserID))
            {
                pnlFuncLink.Visible = true;
            }
            else
            {
                pnlFuncLink.Visible = false;
            }
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (ConfigGlobal_Arsenal.PluginActive)
            {
                //Response.Redirect("ArsenalPortal.aspx");
                //Response.Redirect("http://bbs.arsenalcn.com/plugin/acncasino/");
            }
            else
            {
                ltrlPluginName.Text = $"<strong>欢迎进入{ConfigGlobal_Arsenal.PluginDisplayName}</strong>";

                if (ConfigGlobal_Arsenal.IsPluginAdmin(UID))
                {
                    pnlAdmin.Visible = true;
                }
                else
                {
                    pnlAdmin.Visible = false;
                }
            }
        }