Added: WebHosting: Moved hostname support enablement to hosting plan to enable
closer compatibility with legacy approach. Default hostname set within webpolicy settings
This commit is contained in:
parent
71875ca55f
commit
b4a760f6ec
24 changed files with 235 additions and 42 deletions
|
@ -37,6 +37,8 @@ using System.Web.UI.WebControls;
|
|||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
|
||||
using WebsitePanel.EnterpriseServer;
|
||||
|
||||
namespace WebsitePanel.Portal
|
||||
{
|
||||
public partial class WebSitesAddPointer : WebsitePanelModuleBase
|
||||
|
@ -44,6 +46,19 @@ namespace WebsitePanel.Portal
|
|||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
domainsSelectDomainControl.PackageId = PanelSecurity.PackageId;
|
||||
|
||||
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
|
||||
|
||||
if (Utils.CheckQouta(Quotas.WEB_ENABLEHOSTNAMESUPPORT, cntx))
|
||||
{
|
||||
txtHostName.Visible = lblTheDotInTheMiddle.Visible = true;
|
||||
UserSettings settings = ES.Services.Users.GetUserSettings(PanelSecurity.LoggedUserId, UserSettings.WEB_POLICY);
|
||||
txtHostName.Text = String.IsNullOrEmpty(settings["HostName"]) ? "" : settings["HostName"];
|
||||
}
|
||||
else
|
||||
txtHostName.Visible = lblTheDotInTheMiddle.Visible = false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void AddPointer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue