public void AttachEventHandlers(ModuleRegistry registry)
 {
     AdminHandler.Instance.OnLoadAdminPage += new AdminHandler.AdminRequestHandler(AdminHandler_OnLoadAdminPage);
     WebEvents.AddFormProcessor(new WebEvents.FormPostAction(null, null, "page-edit-button", "Save Page", SavePage));
     WebEvents.Instance.OnLoadRequestedPath += new WebEvents.RequestedPathEventHandler(WebEvents_OnLoadRequestedPath);
     AdminHandler.AddPagePreprocessor("PageEdit", PreEditPage);
 }
Exemple #2
0
        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));
        }