Domain management optimized and simplified:
Creation of websites and pointers decoupled from Domains in order to choose freely the hostname of a website or pointer. Quota enforcement around domain pointers disabled, though registration is still in place
This commit is contained in:
parent
ba71e9b29c
commit
92133e2c20
31 changed files with 9005 additions and 10978 deletions
|
@ -50,7 +50,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
bool sendAccountLetter,
|
||||
bool createPackage, int planId, bool sendPackageLetter,
|
||||
string domainName, bool tempDomain, bool createWebSite,
|
||||
bool createFtpAccount, string ftpAccountName, bool createMailAccount)
|
||||
bool createFtpAccount, string ftpAccountName, bool createMailAccount, string hostName)
|
||||
{
|
||||
UserCreationWizard wizard = new UserCreationWizard();
|
||||
|
||||
|
@ -59,7 +59,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
sendAccountLetter,
|
||||
createPackage, planId, sendPackageLetter,
|
||||
domainName, tempDomain, createWebSite,
|
||||
createFtpAccount, ftpAccountName, createMailAccount);
|
||||
createFtpAccount, ftpAccountName, createMailAccount, hostName);
|
||||
}
|
||||
|
||||
// private fields
|
||||
|
@ -72,7 +72,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
bool sendAccountLetter,
|
||||
bool createPackage, int planId, bool sendPackageLetter,
|
||||
string domainName, bool tempDomain, bool createWebSite,
|
||||
bool createFtpAccount, string ftpAccountName, bool createMailAccount)
|
||||
bool createFtpAccount, string ftpAccountName, bool createMailAccount, string hostName)
|
||||
{
|
||||
|
||||
// check account
|
||||
|
@ -193,13 +193,13 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
}
|
||||
|
||||
if (createWebSite && !String.IsNullOrEmpty(domainName))
|
||||
if (createWebSite && !String.IsNullOrEmpty(domainName) && !String.IsNullOrEmpty(hostName))
|
||||
{
|
||||
// create web site
|
||||
try
|
||||
{
|
||||
int webSiteId = WebServerController.AddWebSite(
|
||||
createdPackageId, domainId, 0, true);
|
||||
createdPackageId, hostName, domainId, 0, true);
|
||||
if (webSiteId < 0)
|
||||
{
|
||||
// rollback wizard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue