screwturn-4/WebApplication/AccessDenied.aspx.cs
2009-09-30 13:47:13 +00:00

34 lines
1 KiB
C#

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ScrewTurn.Wiki.PluginFramework;
namespace ScrewTurn.Wiki {
public partial class AccessDenied : BasePage {
protected void Page_Load(object sender, EventArgs e) {
Page.Title = Properties.Messages.AccessDeniedTitle + " - " + Settings.WikiTitle;
string n = Content.GetPseudoCacheValue("AccessDeniedNotice");
if(n == null) {
n = Settings.Provider.GetMetaDataItem(MetaDataItem.AccessDeniedNotice, null);
if(!string.IsNullOrEmpty(n)) {
n = FormattingPipeline.FormatWithPhase1And2(n, false, FormattingContext.Other, null);
Content.SetPseudoCacheValue("AccessDeniedNotice", n);
}
}
if(!string.IsNullOrEmpty(n)) lblDescription.Text = FormattingPipeline.FormatWithPhase3(n, FormattingContext.Other, null);
}
}
}