private void SetPageInitPart() { ltrJQueryLibrary.Text = GetJqueryLibraryPath(); CheckUserLogin(); string PageName = "EditPages";// Path.GetFileNameWithoutExtension(PagePath); if (PageName != null) { SecurityPolicy objSecurity = new SecurityPolicy(); userName = objSecurity.GetUser(1); templateFavicon = SetFavIcon(GetActiveTemplate); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "templatefavicon", " var templateFavIcon='" + templateFavicon + "';", true); Extension = SageFrameSettingKeys.PageExtension; ApplicationController objAppController = new ApplicationController(); objSecurity.UpdateExpireTime(userName, 1); if (!objAppController.CheckRequestExtension(Request)) { SageInitPart(); } SetGlobalVariable(); bool IsAdmin = true; IncludeStartup(1, pchHolder, IsAdmin); } else { Response.Redirect(PortalAPI.PageNotAccessibleURL); } }
private void SageInitPart() { ApplicationController objAppController = new ApplicationController(); if (objAppController.IsInstalled()) { if (!objAppController.CheckRequestExtension(Request)) { SetPortalCofig(); InitializePage(); LoadMessageControl(); BindModuleControls(); SageFrameConfig sfConfig = new SageFrameConfig(); string defaultAdminTheme = sfConfig.GetSettingValueByIndividualKey(SageFrameSettingKeys.DefaultAdminTheme); string adminSidebarPosition = sfConfig.GetSettingValueByIndividualKey(SageFrameSettingKeys.AdminSidebarPosition); //rdTemplate.SelectedValue = defaultAdminTheme; if (adminSidebarPosition == "left") { //rdLeft.Checked = true; //divSideBar.Attributes.Add("class", "sideBarLeft"); } else { // rdRight.Checked = true; //divSideBar.Attributes.Add("class", "sideBarRight"); } } } else { HttpContext.Current.Response.Redirect(ResolveUrl("~/Install/InstallWizard.aspx")); } }
private void SageInitPart() { try { ApplicationController objAppController = new ApplicationController(); if (objAppController.IsInstalled()) { if (!objAppController.CheckRequestExtension(Request)) { InitializePage(); SageFrameConfig sfConfig = new SageFrameConfig(); IsUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls); SetAdminParts(); BindModuleControls(); } } else { HttpContext.Current.Response.Redirect(ResolveUrl("~/Install/InstallWizard.aspx")); } } catch { //throw ex; } }
private void SetPageInitPart() { ltrJQueryLibrary.Text = GetAdminJqueryLibraryPath(); CheckUserLogin(); string PageName = Path.GetFileNameWithoutExtension(PagePath); //adminImage.ImageUrl = GetUserImage; if (PageName != null) { SecurityPolicy objSecurity = new SecurityPolicy(); userName = objSecurity.GetUser(GetPortalID); templateFavicon = SetFavIcon(GetActiveTemplate); Extension = SageFrameSettingKeys.PageExtension; ApplicationController objAppController = new ApplicationController(); objSecurity.UpdateExpireTime(userName, GetPortalID); if (!objAppController.CheckRequestExtension(Request)) { SageInitPart(); } SetGlobalVariable(); bool IsAdmin = true; IncludeStartup(GetPortalID, pchHolder, IsAdmin); } else { Response.Redirect(PortalAPI.PageNotAccessibleURL); } }
private void SetPageLoadPart() { ApplicationController objAppController = new ApplicationController(); if (!objAppController.CheckRequestExtension(Request)) { SagePageLoadPart(); } }
private void SetPageLoadPart() { ApplicationController objAppController = new ApplicationController(); if (!objAppController.CheckRequestExtension(Request)) { CoreJs.IncludeLanguageCoreJs(this.Page); SagePageLoadPart(); } }
private void SetPageLoadPart() { ApplicationController objAppController = new ApplicationController(); if (!objAppController.CheckRequestExtension(Request)) { //CoreJs.IncludeLanguageCoreJs(this.Page); SessionTrackerController sTracController = new SessionTrackerController(); sTracController.SetSessionTrackerValues(currentportalID.ToString(), GetUsername); } }
private void SetPageInitPart() { templateFavicon = SetFavIcon(GetActiveTemplate); Extension = SageFrameSettingKeys.PageExtension; ApplicationController objAppController = new ApplicationController(); if (!objAppController.CheckRequestExtension(Request)) { SageInitPart(); } SetGlobalVariable(); }
private void SageInitPart() { ApplicationController objAppController = new ApplicationController(); if (objAppController.IsInstalled()) { if (!objAppController.CheckRequestExtension(Request)) { SetPortalCofig(); InitializePage(); LoadMessageControl(); BindModuleControls(); } } else { HttpContext.Current.Response.Redirect(ResolveUrl("~/Install/InstallWizard.aspx")); } }
private void SageInitPart() { ApplicationController objAppController = new ApplicationController(); if (objAppController.IsInstalled()) { if (!objAppController.CheckRequestExtension(Request)) { SetPortalCofig(); InitializePage(); //hypUpgrade.NavigateUrl = "~/Admin/sfUpgrader" + Extension; LoadMessageControl(); BindModuleControls(); SageFrameConfig sfConfig = new SageFrameConfig(); string defaultAdminTheme = sfConfig.GetSettingValueByIndividualKey(SageFrameSettingKeys.DefaultAdminTheme); string adminSidebarPosition = sfConfig.GetSettingValueByIndividualKey(SageFrameSettingKeys.AdminSidebarPosition); SetColorCombo(sfConfig); rdTemplate.SelectedValue = defaultAdminTheme; if (adminSidebarPosition == "left") { rdLeft.Checked = true; sfOuterwrapper.Attributes.Add("class", "menuleft"); } else if (adminSidebarPosition == "top") { rdTop.Checked = true; sfOuterwrapper.Attributes.Add("class", "menutop"); } else { rdRight.Checked = true; sfOuterwrapper.Attributes.Add("class", "menuright"); } } } else { HttpContext.Current.Response.Redirect(ResolveUrl("~/Install/InstallWizard.aspx")); } }
private void SageInitPart() { ApplicationController objAppController = new ApplicationController(); if (objAppController.IsInstalled()) { if (!objAppController.CheckRequestExtension(Request)) { SetPortalCofig(); InitializePage(); hypUpgrade.NavigateUrl = "~/Admin/sfUpgrader" + Extension; SageFrameConfig sfConfig = new SageFrameConfig(); IsUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls); LoadMessageControl(); BindModuleControls(); } } else { HttpContext.Current.Response.Redirect(ResolveUrl("~/Install/InstallWizard.aspx")); } }
private void SetPageInitPart() { string PageName = Path.GetFileNameWithoutExtension(PagePath); if (PageName != null) { userName = SecurityPolicy.GetUser(GetPortalID); templateFavicon = SetFavIcon(GetActiveTemplate); Extension = SageFrameSettingKeys.PageExtension; ApplicationController objAppController = new ApplicationController(); if (!objAppController.CheckRequestExtension(Request)) { SageInitPart(); } SetGlobalVariable(); bool IsAdmin = true; IncludeStartup(GetPortalID, pchHolder, IsAdmin); } else { Response.Redirect(PortalAPI.PageNotAccessibleURL); } }
private void SageInitPart() { try { ApplicationController objAppController = new ApplicationController(); if (objAppController.IsInstalled()) { if (!objAppController.CheckRequestExtension(Request)) { SageFrameConfig sfConfig = new SageFrameConfig(); SetAdminParts(); BindModuleControls(); } } else { HttpContext.Current.Response.Redirect(ResolveUrl("~/Install/InstallWizard.aspx")); } } catch (Exception) { //throw ex; } }
public void ManageSSLConnection() { ApplicationController objAppController = new ApplicationController(); if (!objAppController.CheckRequestExtension(Request)) { if (Session[SessionKeys.Ssl] == null) { Session[SessionKeys.Ssl] = "True"; //check logic redirect to or not //btn click login and logout prob PageController objController = new PageController(); List <SecurePageInfo> sp = objController.GetSecurePage(currentportalID, GetCurrentCulture()); string pagename = GetPageSEOName(PagePath); if (pagename != "Page-Not-Found") { if (Session[SessionKeys.pagename] != null) { prevpage = Session[SessionKeys.pagename].ToString(); } if (prevpage != pagename) { Session[SessionKeys.pagename] = pagename; for (int i = 0; i < sp.Count; i++) { if (pagename.ToLower() == sp[i].SecurePageName.ToString().ToLower()) { if (bool.Parse(sp[i].IsSecure.ToString())) { if (!HttpContext.Current.Request.IsSecureConnection) { if (!HttpContext.Current.Request.Url.IsLoopback) //Don't check when in development mode (i.e. localhost) { Session[SessionKeys.prevurl] = "https"; Response.Redirect(Request.Url.ToString().Replace("http://", "https://")); } } } else { Session[SessionKeys.prevurl] = "http"; Response.Redirect(Request.Url.ToString().Replace("https://", "http://")); } } } } else if (Session[SessionKeys.prevurl] != null) { if (Session[SessionKeys.prevurl].ToString() != Request.Url.ToString().Split(':')[0].ToString()) { for (int i = 0; i < sp.Count; i++) { if (pagename.ToLower() == sp[i].SecurePageName.ToString().ToLower()) { if (bool.Parse(sp[i].IsSecure.ToString())) { if (!HttpContext.Current.Request.IsSecureConnection) { if (!HttpContext.Current.Request.Url.IsLoopback) //Don't check when in development mode (i.e. localhost) { Response.Redirect(Request.Url.ToString().Replace("http://", "https://")); } } } else { Response.Redirect(Request.Url.ToString().Replace("https://", "http://")); } } } } } } } } }