public void AttachEventHandlers(ModuleRegistry registry) { getWebsiteName = GetDefaultWebsiteName; Core.Instance.OnInitialiseComplete += new EmptyHandler(LoadDefinitionFiles); WebEvents.Instance.OnBeginHttpRequest += new WebEvents.HttpApplicationCancellableEventHandler(WebEvents_OnBeginHttpRequest); WebEvents.Instance.OnLoadRequestedPath += new WebEvents.RequestedPathEventHandler(WebEvents_OnLoadRequestedPath); WebEvents.Instance.OnRequestedPathProcessed += new WebEvents.HttpApplicationEventHandler(WebEvents_OnRequestedPathProcessed); WebEvents.Instance.OnEndHttpRequest += new WebEvents.HttpApplicationEventHandler(WebEvents_OnEndHttpRequest); AddPagePreprocessor("Login", PreProcessLoginPage); AddPagePreprocessor("Logout", PreProcessLogout); WebEvents.AddFormProcessor(new WebEvents.FormPostAction("admin/login", null, null, null, ProcessLoginForm)); }