Пример #1
0
        private void AdminPage_Load(object sender,EventArgs e)
        {
            if(!IsAdmin)
                Data.AccessDenied();

            #if false
            if(!IsPostBack)
            {
                controls.PageLinks ctl = new controls.PageLinks();
                ctl.AddLink(BoardSettings.Name,Forum.GetLink(Pages.forum));
                ctl.AddLink("Administration",Forum.GetLink(Pages.admin_admin));
                Controls.AddAt(0,ctl);
            }
            #endif
        }
Пример #2
0
        private void AdminPage_Load(object sender, EventArgs e)
        {
            if (!IsAdmin)
            {
                Data.AccessDenied();
            }

#if false
            if (!IsPostBack)
            {
                controls.PageLinks ctl = new controls.PageLinks();
                ctl.AddLink(BoardSettings.Name, Forum.GetLink(Pages.forum));
                ctl.AddLink("Administration", Forum.GetLink(Pages.admin_admin));
                Controls.AddAt(0, ctl);
            }
#endif
        }