Example #1
0
	protected void Page_Init(object sender, EventArgs e)
	{
		if (!((BXAdminPage)Page).BXUser.IsCanOperate("UpdateSystem"))
			BXAuthentication.AuthenticationRequired();
		
		siteUpdater = BXSiteUpdaterIntercomProxy.ResolveProxy();
		config = siteUpdater.RequestConfigSettings();
	}
Example #2
0
	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 = BXSiteUpdaterIntercomProxy.ResolveProxy();
		locale = Bitrix.Services.BXLoc.CurrentLocale; // save locale, because site updater has no context to store locale
	}