protected void Page_Init(object sender, EventArgs e) { if (!((BXAdminPage)Page).BXUser.IsCanOperate("UpdateSystem")) BXAuthentication.AuthenticationRequired(); siteUpdater = BXSiteUpdater.GetUpdater(); }
protected void Page_Init(object sender, EventArgs e) { if (!BXPrincipal.Current.IsCanOperate("UpdateSystem")) BXAuthentication.AuthenticationRequired(); Server.ScriptTimeout = 10000; ScriptManager.GetCurrent(Page).AsyncPostBackTimeout = 10000; siteUpdater = BXSiteUpdater.GetPartnerUpdater(); locale = Bitrix.Services.BXLoc.CurrentLocale; // save locale, because site updater has no context to store locale }
protected void Page_Init(object sender, EventArgs e) { if (!BXPrincipal.Current.IsCanOperate("UpdateSystem")) BXAuthentication.AuthenticationRequired(); Server.ScriptTimeout = 10000; ScriptManager.GetCurrent(Page).AsyncPostBackTimeout = 10000; //this.LinkToStylesheetCollectionRender.Add(VirtualPathUtility.ToAbsolute("~/bitrix/themes/.default/UpdateSystem.css")); siteUpdater = BXSiteUpdater.GetUpdater(); }