Helicon Ape: Server-wide enbaling/disabling (global registration) added
This commit is contained in:
parent
0817269e1b
commit
deddc73f28
8 changed files with 361 additions and 92 deletions
|
@ -2869,7 +2869,6 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Helicon Ape
|
||||
public static int EnableHeliconApe(int siteItemId)
|
||||
{
|
||||
|
@ -2939,7 +2938,48 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <summary>
|
||||
/// Enables Helicon Ape on the server globally. Requires Administrator role to execute.
|
||||
/// </summary>
|
||||
/// <param name="ServiceId"></param>
|
||||
/// <returns></returns>
|
||||
public static int EnableHeliconApeGlobally(int ServiceId)
|
||||
{
|
||||
int accountCheck = SecurityContext.CheckAccount(DemandAccount.IsAdmin | DemandAccount.IsActive | DemandAccount.NotDemo);
|
||||
if (accountCheck < 0)
|
||||
{
|
||||
return accountCheck;
|
||||
}
|
||||
|
||||
WebServer web = GetWebServer(ServiceId);
|
||||
web.EnableHeliconApe("");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Disables Helicon Ape on the server globally. Requires Administrator role to execute.
|
||||
/// </summary>
|
||||
/// <param name="ServiceId"></param>
|
||||
/// <returns></returns>
|
||||
public static int DisableHeliconApeGlobally(int ServiceId)
|
||||
{
|
||||
int accountCheck = SecurityContext.CheckAccount(DemandAccount.IsAdmin | DemandAccount.IsActive | DemandAccount.NotDemo);
|
||||
//
|
||||
if (accountCheck < 0)
|
||||
{
|
||||
return accountCheck;
|
||||
}
|
||||
|
||||
WebServer web = GetWebServer(ServiceId);
|
||||
web.DisableHeliconApe("");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves Helicon Ape extension status from the server. Requires Administrator role to execute.
|
||||
/// </summary>
|
||||
/// <param name="ServiceId"></param>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue