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 }
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 }