public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("siteId"); var userKeyPrefix = AuthRequest.GetQueryString("userKeyPrefix"); if (AuthRequest.IsQueryExists("createSite")) { LtlTitle.Text = "新建站点"; var pars = AjaxCreateService.GetCreateSiteParameters(SiteId, AuthRequest.GetQueryBool("isImportContents"), AuthRequest.GetQueryBool("isImportTableStyles"), AuthRequest.GetQueryString("siteTemplateDir"), AuthRequest.GetQueryString("onlineTemplateName"), AuthRequest.GetQueryBool("isUseTables"), userKeyPrefix); LtlRegisterScripts.Text = AjaxManager.RegisterProgressTaskScript(AjaxCreateService.GetCreateSiteUrl(), pars, userKeyPrefix, AjaxCreateService.GetCountArrayUrl(), true); } else if (AuthRequest.IsQueryExists("backup") && AuthRequest.IsQueryExists("backupType")) { LtlTitle.Text = "数据备份"; var parameters = AjaxBackupService.GetBackupParameters(SiteId, AuthRequest.GetQueryString("backupType"), userKeyPrefix); LtlRegisterScripts.Text = AjaxManager.RegisterWaitingTaskScript(AjaxBackupService.GetBackupUrl(), parameters); } else if (AuthRequest.IsQueryExists("recovery") && AuthRequest.IsQueryExists("isZip")) { LtlTitle.Text = "数据恢复"; var parameters = AjaxBackupService.GetRecoveryParameters(SiteId, AuthRequest.GetQueryBool("isDeleteChannels"), AuthRequest.GetQueryBool("isDeleteTemplates"), AuthRequest.GetQueryBool("isDeleteFiles"), AuthRequest.GetQueryBool("isZip"), PageUtils.UrlEncode(AuthRequest.GetQueryString("path")), AuthRequest.GetQueryBool("isOverride"), AuthRequest.GetQueryBool("isUseTable"), userKeyPrefix); LtlRegisterScripts.Text = AjaxManager.RegisterWaitingTaskScript(AjaxBackupService.GetRecoveryUrl(), parameters); } else if (AuthRequest.IsQueryExists("createIndex")) { CreateIndex(); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } PageUtils.CheckRequestParameter("PublishmentSystemID"); var userKeyPrefix = Body.GetQueryString("UserKeyPrefix"); if (Body.IsQueryExists("CreatePublishmentSystem")) { LtlTitle.Text = "新建站点"; var pars = AjaxCreateService.GetCreatePublishmentSystemParameters(PublishmentSystemId, Body.GetQueryBool("IsUseSiteTemplate"), Body.GetQueryBool("IsImportContents"), Body.GetQueryBool("IsImportTableStyles"), Body.GetQueryString("SiteTemplateDir"), Body.GetQueryBool("IsUseTables"), userKeyPrefix, Body.GetQueryBool("isTop"), Body.GetQueryString("returnUrl")); LtlRegisterScripts.Text = AjaxManager.RegisterProgressTaskScript(AjaxCreateService.GetCreatePublishmentSystemUrl(), pars, userKeyPrefix, AjaxCreateService.GetCountArrayUrl(), true); } else if (Body.IsQueryExists("Backup") && Body.IsQueryExists("BackupType")) { LtlTitle.Text = "数据备份"; var parameters = AjaxBackupService.GetBackupParameters(PublishmentSystemId, Body.GetQueryString("BackupType"), userKeyPrefix); LtlRegisterScripts.Text = AjaxManager.RegisterWaitingTaskScript(AjaxBackupService.GetBackupUrl(), parameters); } else if (Body.IsQueryExists("Recovery") && Body.IsQueryExists("IsZip")) { LtlTitle.Text = "数据恢复"; var parameters = AjaxBackupService.GetRecoveryParameters(PublishmentSystemId, Body.GetQueryBool("IsDeleteChannels"), Body.GetQueryBool("IsDeleteTemplates"), Body.GetQueryBool("IsDeleteFiles"), Body.GetQueryBool("IsZip"), PageUtils.UrlEncode(Body.GetQueryString("Path")), Body.GetQueryBool("IsOverride"), Body.GetQueryBool("IsUseTable"), userKeyPrefix); LtlRegisterScripts.Text = AjaxManager.RegisterWaitingTaskScript(AjaxBackupService.GetRecoveryUrl(), parameters); } else if (Body.IsQueryExists("DeleteAllPage") && Body.IsQueryExists("TemplateType")) { DeleteAllPage(); } else if (Body.IsQueryExists("CreateIndex")) { CreateIndex(); } }