You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
881 B
32 lines
881 B
using System;
|
|
using System.Web.UI;
|
|
using SiteServer.CMS.Api;
|
|
using SiteServer.CMS.Api.Sys.Packaging;
|
|
using SiteServer.Utils;
|
|
using SiteServer.CMS.Core;
|
|
|
|
namespace SiteServer.BackgroundPages
|
|
{
|
|
public class PageSyncDatabase : Page
|
|
{
|
|
public static string GetRedirectUrl()
|
|
{
|
|
return PageUtils.GetSiteServerUrl(nameof(PageSyncDatabase), null);
|
|
}
|
|
|
|
public string UpdateDatabaseApiUrl => ApiRouteSyncDatabase.GetUrl(ApiManager.InnerApiUrl);
|
|
|
|
public string AdminUrl => PageUtils.GetAdminDirectoryUrl(string.Empty);
|
|
|
|
public void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (IsPostBack) return;
|
|
|
|
if (SystemManager.IsNeedInstall())
|
|
{
|
|
Page.Response.Write("系统未安装,向导被禁用!");
|
|
Page.Response.End();
|
|
}
|
|
}
|
|
}
|
|
}
|