Update Website Pointers:
Code structured, Option Added to ignore GlobalDNSZone when creating additional website
This commit is contained in:
parent
c39dd51260
commit
4b0a56c3cd
12 changed files with 143 additions and 81 deletions
|
@ -53,6 +53,8 @@ namespace WebsitePanel.Portal
|
|||
// bind IP Addresses
|
||||
BindIPAddresses();
|
||||
|
||||
BindIgnoreZoneTemplate();
|
||||
|
||||
// toggle
|
||||
ToggleControls();
|
||||
}
|
||||
|
@ -63,6 +65,19 @@ namespace WebsitePanel.Portal
|
|||
rowDedicatedIP.Visible = rbDedicatedIP.Checked;
|
||||
}
|
||||
|
||||
private void BindIgnoreZoneTemplate()
|
||||
{
|
||||
/*
|
||||
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
|
||||
if (cntx.Quotas[Quotas.WEB_SITES].QuotaUsedValue > 0)
|
||||
chkIgnoreGlobalDNSRecords.Visible = chkIgnoreGlobalDNSRecords.Checked = lblIgnoreGlobalDNSRecords.Visible = true;
|
||||
else
|
||||
chkIgnoreGlobalDNSRecords.Visible = chkIgnoreGlobalDNSRecords.Checked = lblIgnoreGlobalDNSRecords.Visible= false;
|
||||
*/
|
||||
|
||||
chkIgnoreGlobalDNSRecords.Checked = false;
|
||||
}
|
||||
|
||||
private void BindIPAddresses()
|
||||
{
|
||||
ddlIpAddresses.Items.Add(new ListItem("<Select IP>", ""));
|
||||
|
@ -92,7 +107,7 @@ namespace WebsitePanel.Portal
|
|||
int packageAddressId = rbDedicatedIP.Checked ? Utils.ParseInt(ddlIpAddresses.SelectedValue, 0) : 0;
|
||||
|
||||
siteItemId = ES.Services.WebServers.AddWebSite(PanelSecurity.PackageId, txtHostName.Text.ToLower(), domainsSelectDomainControl.DomainId,
|
||||
packageAddressId);
|
||||
packageAddressId, chkIgnoreGlobalDNSRecords.Checked);
|
||||
|
||||
if (siteItemId < 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue