merge commit
This commit is contained in:
commit
5309b1d973
13 changed files with 191 additions and 154 deletions
|
@ -54,7 +54,7 @@ function websitepanel_addons_AddonActivation($params)
|
||||||
|
|
||||||
// Retrieve the WebsitePanel Addons module settings
|
// Retrieve the WebsitePanel Addons module settings
|
||||||
$modSettings = websitepanel_addons_GetSettings();
|
$modSettings = websitepanel_addons_GetSettings();
|
||||||
if (empty($modSettings['username']) || empty($modSettings['password'])) || empty($modSettings['serverhost'])) || empty($modSettings['serverport'])))
|
if (empty($modSettings['username']) || empty($modSettings['password']) || empty($modSettings['serverhost']) || empty($modSettings['serverport']))
|
||||||
{
|
{
|
||||||
// The module is disabled or has not yet been configured - stop
|
// The module is disabled or has not yet been configured - stop
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -53,7 +53,7 @@ function websitepanel_sync_ClientEdit($params)
|
||||||
|
|
||||||
// Retrieve the WebsitePanel Addons module settings
|
// Retrieve the WebsitePanel Addons module settings
|
||||||
$modSettings = websitepanel_sync_GetSettings();
|
$modSettings = websitepanel_sync_GetSettings();
|
||||||
if (empty($modSettings['username']) || empty($modSettings['password'])) || empty($modSettings['serverhost'])) || empty($modSettings['serverport'])))
|
if (empty($modSettings['username']) || empty($modSettings['password']) || empty($modSettings['serverhost']) || empty($modSettings['serverport']))
|
||||||
{
|
{
|
||||||
// The module is disabled or has not yet been configured - stop
|
// The module is disabled or has not yet been configured - stop
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -414,8 +414,7 @@ class WebsitePanel
|
||||||
$esUrl = (($this->_esUseSsl ? "https" : "http") . "://{$this->_esServerUrl}:{$this->_esServerPort}/{$serviceFile}?WSDL");
|
$esUrl = (($this->_esUseSsl ? "https" : "http") . "://{$this->_esServerUrl}:{$this->_esServerPort}/{$serviceFile}?WSDL");
|
||||||
$soapParams = array('login' => $this->_esUsername,
|
$soapParams = array('login' => $this->_esUsername,
|
||||||
'password' => $this->_esPassword,
|
'password' => $this->_esPassword,
|
||||||
'cache_wsdl' => WSDL_CACHE_NONE, // WSDL caching is an annoying nightmare - we will disable it
|
'cache_wsdl' => WSDL_CACHE_NONE // WSDL caching is an annoying nightmare - we will disable it
|
||||||
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP
|
|
||||||
);
|
);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,10 +13,7 @@ To enable addon automation...
|
||||||
What does not work?
|
What does not work?
|
||||||
- Quantities, only a single addon => addon can be allocated
|
- Quantities, only a single addon => addon can be allocated
|
||||||
- Terminating / Suspending Addons, I've ran out of time on what I can do currently
|
- Terminating / Suspending Addons, I've ran out of time on what I can do currently
|
||||||
- When an IP address is allocated WebsitePanel does not return back what IP was allocated, so WHMCS is not updated which what IP has been allocated to
|
- When an IP address is allocated WebsitePanel does not return back what IP was allocated, so WHMCS is not updated which what IP has been allocated to his / her package at this time.
|
||||||
his / her package at this time.
|
|
||||||
- A single user => single package is the only way the WebsitePanel server module works. I have no plans on making this work any other way.
|
- A single user => single package is the only way the WebsitePanel server module works. I have no plans on making this work any other way.
|
||||||
- Users who use empty pointers when creating websites (domain.com instead of www.domain.com), websites are not created automatically even if the "Create Website"
|
|
||||||
option is selected. I have provided a patch to the websitepanel developers, should be fixed in a later release.
|
DO NOT CONTACT WHMCS FOR SUPPORT WITH THIS MODULE - THIS IS NOT DEVELOPED BY WHMCS AND HAS NO AFFILIATION WITH WHMCS OR WHMCS.COM.
|
||||||
- The "Enable DNS Zone" option does not currently work - I have provided a patch to the websitepanel developers, should be fixed in a later release.
|
|
||||||
- Instant aliases / Temp domain are not properly created for websites, I have provided a patch to the websitepanel developers, should be fixed in a later release.
|
|
|
@ -92,7 +92,10 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
private int PagerIndex = -1;
|
private int PagerIndex = -1;
|
||||||
private int WebPageIndex = -1;
|
private int WebPageIndex = -1;
|
||||||
private int NotesIndex = -1;
|
private int NotesIndex = -1;
|
||||||
|
private int PlanIndex = -1;
|
||||||
|
|
||||||
|
private int defaultPlanId = -1;
|
||||||
|
private Dictionary<string, int> planName2Id = new Dictionary<string,int>();
|
||||||
|
|
||||||
public ExchangeImport()
|
public ExchangeImport()
|
||||||
{
|
{
|
||||||
|
@ -184,6 +187,8 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
}
|
}
|
||||||
index = 0;
|
index = 0;
|
||||||
|
|
||||||
|
GetMailboxPlans(orgId);
|
||||||
|
|
||||||
using (StreamReader sr = new StreamReader(inputFile))
|
using (StreamReader sr = new StreamReader(inputFile))
|
||||||
{
|
{
|
||||||
string line;
|
string line;
|
||||||
|
@ -210,6 +215,22 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void GetMailboxPlans(int orgId)
|
||||||
|
{
|
||||||
|
ExchangeMailboxPlan[] plans = ES.Services.ExchangeServer.GetExchangeMailboxPlans(orgId);
|
||||||
|
foreach (ExchangeMailboxPlan plan in plans)
|
||||||
|
{
|
||||||
|
if (!planName2Id.ContainsKey(plan.MailboxPlan))
|
||||||
|
{
|
||||||
|
planName2Id.Add(plan.MailboxPlan, plan.MailboxPlanId);
|
||||||
|
}
|
||||||
|
if (plan.IsDefault)
|
||||||
|
{
|
||||||
|
defaultPlanId = plan.MailboxPlanId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ShowSummary()
|
private void ShowSummary()
|
||||||
{
|
{
|
||||||
Log.WriteLine(string.Format("{0} line(s) processed", index));
|
Log.WriteLine(string.Format("{0} line(s) processed", index));
|
||||||
|
@ -286,7 +307,9 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
WebPageIndex = i;
|
WebPageIndex = i;
|
||||||
else if (StringEquals(cells[i], "Notes"))
|
else if (StringEquals(cells[i], "Notes"))
|
||||||
NotesIndex = i;
|
NotesIndex = i;
|
||||||
}
|
else if (StringEquals(cells[i], "Mailbox Plan"))
|
||||||
|
PlanIndex = i;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//check csv structure
|
//check csv structure
|
||||||
|
@ -430,6 +453,29 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
string webPage = cells[WebPageIndex];
|
string webPage = cells[WebPageIndex];
|
||||||
string notes = cells[NotesIndex];
|
string notes = cells[NotesIndex];
|
||||||
|
|
||||||
|
int planId;
|
||||||
|
// do we have plan-column?
|
||||||
|
if (PlanIndex > -1)
|
||||||
|
{
|
||||||
|
string planName = cells[PlanIndex];
|
||||||
|
if (!planName2Id.TryGetValue(planName, out planId))
|
||||||
|
{
|
||||||
|
Log.WriteInfo(String.Format("Warning at line {0}: Plan named {1} does not exist!", index + 1, planName));
|
||||||
|
// fall back to default plan
|
||||||
|
planId = defaultPlanId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// or not?
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// fall back to default plan
|
||||||
|
planId = defaultPlanId;
|
||||||
|
}
|
||||||
|
if (planId < 0)
|
||||||
|
{
|
||||||
|
Log.WriteError(string.Format("Error at line {0}: No valid plan name and/or no valid default plan", index + 1));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -480,7 +526,7 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
//create mailbox using web service
|
//create mailbox using web service
|
||||||
if (!CreateMailbox(index, orgId, displayName, emailAddress, password, firstName, middleName, lastName,
|
if (!CreateMailbox(index, orgId, displayName, emailAddress, password, firstName, middleName, lastName,
|
||||||
address, city, state, zip, country, jobTitle, company, department, office,
|
address, city, state, zip, country, jobTitle, company, department, office,
|
||||||
businessPhone, fax, homePhone, mobilePhone, pager, webPage, notes))
|
businessPhone, fax, homePhone, mobilePhone, pager, webPage, notes, planId))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -517,7 +563,7 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool CreateMailbox(int index, int orgId, string displayName, string emailAddress, string password, string firstName, string middleName, string lastName,
|
private bool CreateMailbox(int index, int orgId, string displayName, string emailAddress, string password, string firstName, string middleName, string lastName,
|
||||||
string address, string city, string state, string zip, string country, string jobTitle, string company, string department, string office,
|
string address, string city, string state, string zip, string country, string jobTitle, string company, string department, string office,
|
||||||
string businessPhone, string fax, string homePhone, string mobilePhone, string pager, string webPage, string notes)
|
string businessPhone, string fax, string homePhone, string mobilePhone, string pager, string webPage, string notes, int planId)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
try
|
try
|
||||||
|
@ -528,7 +574,7 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
//create mailbox
|
//create mailbox
|
||||||
//ES.Services.ExchangeServer.
|
//ES.Services.ExchangeServer.
|
||||||
string accountName = string.Empty;
|
string accountName = string.Empty;
|
||||||
int accountId = ES.Services.ExchangeServer.CreateMailbox(orgId, 0, ExchangeAccountType.Mailbox, accountName, displayName, name, domain, password, false, string.Empty, 0, string.Empty);
|
int accountId = ES.Services.ExchangeServer.CreateMailbox(orgId, 0, ExchangeAccountType.Mailbox, accountName, displayName, name, domain, password, false, string.Empty, planId, string.Empty);
|
||||||
if (accountId < 0)
|
if (accountId < 0)
|
||||||
{
|
{
|
||||||
string errorMessage = GetErrorMessage(accountId);
|
string errorMessage = GetErrorMessage(accountId);
|
||||||
|
@ -557,7 +603,6 @@ namespace WebsitePanel.Import.CsvBulk
|
||||||
mailbox.WebPage = webPage;
|
mailbox.WebPage = webPage;
|
||||||
mailbox.Notes = notes;
|
mailbox.Notes = notes;
|
||||||
|
|
||||||
|
|
||||||
//update mailbox
|
//update mailbox
|
||||||
/*
|
/*
|
||||||
ES.Services.ExchangeServer.SetMailboxGeneralSettings(orgId, accountId, mailbox.DisplayName,
|
ES.Services.ExchangeServer.SetMailboxGeneralSettings(orgId, accountId, mailbox.DisplayName,
|
||||||
|
|
|
@ -31,6 +31,7 @@ using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
namespace WebsitePanel.EnterpriseServer
|
namespace WebsitePanel.EnterpriseServer
|
||||||
{
|
{
|
||||||
|
@ -166,6 +167,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
WebSiteResponse result = new WebSiteResponse();
|
WebSiteResponse result = new WebSiteResponse();
|
||||||
HttpWebResponse resp = null;
|
HttpWebResponse resp = null;
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
Stream respStream = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
WebRequest req = WebRequest.Create(url);
|
WebRequest req = WebRequest.Create(url);
|
||||||
|
@ -177,7 +179,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
}
|
}
|
||||||
|
|
||||||
resp = (HttpWebResponse)req.GetResponse();
|
resp = (HttpWebResponse)req.GetResponse();
|
||||||
Stream respStream = resp.GetResponseStream();
|
respStream = resp.GetResponseStream();
|
||||||
string charSet = !String.IsNullOrEmpty(resp.CharacterSet) ? resp.CharacterSet : "utf-8";
|
string charSet = !String.IsNullOrEmpty(resp.CharacterSet) ? resp.CharacterSet : "utf-8";
|
||||||
Encoding encode = System.Text.Encoding.GetEncoding(charSet);
|
Encoding encode = System.Text.Encoding.GetEncoding(charSet);
|
||||||
|
|
||||||
|
@ -196,6 +198,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
result.Status = (int)resp.StatusCode;
|
result.Status = (int)resp.StatusCode;
|
||||||
result.Text = sb.ToString();
|
result.Text = sb.ToString();
|
||||||
}
|
}
|
||||||
|
catch (ThreadAbortException)
|
||||||
|
{
|
||||||
|
}
|
||||||
catch (WebException ex)
|
catch (WebException ex)
|
||||||
{
|
{
|
||||||
result.Status = (int)((HttpWebResponse)ex.Response).StatusCode;
|
result.Status = (int)((HttpWebResponse)ex.Response).StatusCode;
|
||||||
|
@ -210,10 +215,16 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
if (respStream != null)
|
||||||
|
{
|
||||||
|
respStream.Close();
|
||||||
|
}
|
||||||
|
|
||||||
if (resp != null)
|
if (resp != null)
|
||||||
{
|
{
|
||||||
resp.Close();
|
resp.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -165,7 +165,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
// create domain
|
// create domain
|
||||||
int domainId = 0;
|
int domainId = 0;
|
||||||
if ((createWebSite || createMailAccount) && !String.IsNullOrEmpty(domainName))
|
if ((createWebSite || createMailAccount || createZoneRecord) && !String.IsNullOrEmpty(domainName))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -193,7 +193,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (createWebSite && !String.IsNullOrEmpty(domainName))
|
if (createWebSite && (domainId > 0))
|
||||||
{
|
{
|
||||||
// create web site
|
// create web site
|
||||||
try
|
try
|
||||||
|
@ -252,7 +252,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (createMailAccount && !String.IsNullOrEmpty(domainName))
|
if (createMailAccount && (domainId > 0))
|
||||||
{
|
{
|
||||||
// create default mailbox
|
// create default mailbox
|
||||||
try
|
try
|
||||||
|
@ -310,25 +310,25 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
// error while creating mail account
|
// error while creating mail account
|
||||||
throw new Exception("Could not create mail account", ex);
|
throw new Exception("Could not create mail account", ex);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Instant Alias / Temporary URL
|
// Instant Alias / Temporary URL
|
||||||
if (tempDomain && (domainId > 0))
|
if (tempDomain && (domainId > 0))
|
||||||
|
{
|
||||||
|
int instantAliasId = ServerController.CreateDomainInstantAlias("", domainId);
|
||||||
|
if (instantAliasId < 0)
|
||||||
{
|
{
|
||||||
int instantAliasId = ServerController.CreateDomainInstantAlias("", domainId);
|
// rollback wizard
|
||||||
if (instantAliasId < 0)
|
Rollback();
|
||||||
{
|
|
||||||
// rollback wizard
|
|
||||||
Rollback();
|
|
||||||
|
|
||||||
return instantAliasId;
|
return instantAliasId;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Domain DNS Zone
|
// Domain DNS Zone
|
||||||
if (createZoneRecord && (domainId > 0))
|
if (createZoneRecord && (domainId > 0))
|
||||||
{
|
{
|
||||||
ServerController.EnableDomainDns(domainId);
|
ServerController.EnableDomainDns(domainId);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -200,29 +200,23 @@ namespace WebsitePanel.Providers.Mail
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
svcUserAdmin users = new svcUserAdmin();
|
||||||
|
PrepareProxy(users);
|
||||||
|
|
||||||
// get mailbox size
|
StatInfoResult userStats = users.GetUserStats(AdminUsername, AdminPassword, item.Name, DateTime.Now, DateTime.Now);
|
||||||
string name = item.Name;
|
if (!userStats.Result)
|
||||||
|
{
|
||||||
|
throw new Exception(userStats.Message);
|
||||||
|
}
|
||||||
|
|
||||||
// try to get SmarterMail postoffices path
|
Log.WriteStart(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
string poPath = DomainsPath;
|
// calculate disk space
|
||||||
if (poPath == null)
|
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
||||||
continue;
|
diskspace.ItemId = item.Id;
|
||||||
|
//diskspace.DiskSpace = 0;
|
||||||
string mailboxName = name.Substring(0, name.IndexOf("@"));
|
diskspace.DiskSpace = userStats.BytesSize;
|
||||||
string domainName = name.Substring(name.IndexOf("@") + 1);
|
itemsDiskspace.Add(diskspace);
|
||||||
|
Log.WriteEnd(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
string mailboxPath = Path.Combine(DomainsPath, String.Format("{0}\\Users\\{1}", domainName, mailboxName));
|
|
||||||
|
|
||||||
Log.WriteStart(String.Format("Calculating '{0}' folder size", mailboxPath));
|
|
||||||
|
|
||||||
// calculate disk space
|
|
||||||
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
|
||||||
diskspace.ItemId = item.Id;
|
|
||||||
//diskspace.DiskSpace = 0;
|
|
||||||
diskspace.DiskSpace = FileUtils.CalculateFolderSize(mailboxPath);
|
|
||||||
itemsDiskspace.Add(diskspace);
|
|
||||||
Log.WriteEnd(String.Format("Calculating '{0}' folder size", mailboxPath));
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1570,29 +1570,23 @@ namespace WebsitePanel.Providers.Mail
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
svcUserAdmin users = new svcUserAdmin();
|
||||||
|
PrepareProxy(users);
|
||||||
|
|
||||||
// get mailbox size
|
StatInfoResult userStats = users.GetUserStats(AdminUsername, AdminPassword, item.Name, DateTime.Now, DateTime.Now);
|
||||||
string name = item.Name;
|
if (!userStats.Result)
|
||||||
|
{
|
||||||
// try to get SmarterMail postoffices path
|
throw new Exception(userStats.Message);
|
||||||
string poPath = DomainsPath;
|
}
|
||||||
if (poPath == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
string mailboxName = name.Substring(0, name.IndexOf("@"));
|
|
||||||
string domainName = name.Substring(name.IndexOf("@") + 1);
|
|
||||||
|
|
||||||
string mailboxPath = Path.Combine(DomainsPath, String.Format("{0}\\Users\\{1}", domainName, mailboxName));
|
|
||||||
|
|
||||||
Log.WriteStart(String.Format("Calculating '{0}' folder size", mailboxPath));
|
|
||||||
|
|
||||||
|
Log.WriteStart(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
// calculate disk space
|
// calculate disk space
|
||||||
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
||||||
diskspace.ItemId = item.Id;
|
diskspace.ItemId = item.Id;
|
||||||
//diskspace.DiskSpace = 0;
|
//diskspace.DiskSpace = 0;
|
||||||
diskspace.DiskSpace = FileUtils.CalculateFolderSize(mailboxPath);
|
diskspace.DiskSpace = userStats.BytesSize;
|
||||||
itemsDiskspace.Add(diskspace);
|
itemsDiskspace.Add(diskspace);
|
||||||
Log.WriteEnd(String.Format("Calculating '{0}' folder size", mailboxPath));
|
Log.WriteEnd(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -200,29 +200,23 @@ namespace WebsitePanel.Providers.Mail
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
svcUserAdmin users = new svcUserAdmin();
|
||||||
|
PrepareProxy(users);
|
||||||
|
|
||||||
// get mailbox size
|
StatInfoResult userStats = users.GetUserStats(AdminUsername, AdminPassword, item.Name, DateTime.Now, DateTime.Now);
|
||||||
string name = item.Name;
|
if (!userStats.Result)
|
||||||
|
{
|
||||||
// try to get SmarterMail postoffices path
|
throw new Exception(userStats.Message);
|
||||||
string poPath = DomainsPath;
|
}
|
||||||
if (poPath == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
string mailboxName = name.Substring(0, name.IndexOf("@"));
|
|
||||||
string domainName = name.Substring(name.IndexOf("@") + 1);
|
|
||||||
|
|
||||||
string mailboxPath = Path.Combine(DomainsPath, String.Format("{0}\\Users\\{1}", domainName, mailboxName));
|
|
||||||
|
|
||||||
Log.WriteStart(String.Format("Calculating '{0}' folder size", mailboxPath));
|
|
||||||
|
|
||||||
|
Log.WriteStart(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
// calculate disk space
|
// calculate disk space
|
||||||
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
||||||
diskspace.ItemId = item.Id;
|
diskspace.ItemId = item.Id;
|
||||||
//diskspace.DiskSpace = 0;
|
//diskspace.DiskSpace = 0;
|
||||||
diskspace.DiskSpace = FileUtils.CalculateFolderSize(mailboxPath);
|
diskspace.DiskSpace = userStats.BytesSize;
|
||||||
itemsDiskspace.Add(diskspace);
|
itemsDiskspace.Add(diskspace);
|
||||||
Log.WriteEnd(String.Format("Calculating '{0}' folder size", mailboxPath));
|
Log.WriteEnd(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -200,29 +200,23 @@ namespace WebsitePanel.Providers.Mail
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
svcUserAdmin users = new svcUserAdmin();
|
||||||
|
PrepareProxy(users);
|
||||||
|
|
||||||
// get mailbox size
|
StatInfoResult userStats = users.GetUserStats(AdminUsername, AdminPassword, item.Name, DateTime.Now, DateTime.Now);
|
||||||
string name = item.Name;
|
if (!userStats.Result)
|
||||||
|
{
|
||||||
|
throw new Exception(userStats.Message);
|
||||||
|
}
|
||||||
|
|
||||||
// try to get SmarterMail postoffices path
|
Log.WriteStart(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
string poPath = DomainsPath;
|
// calculate disk space
|
||||||
if (poPath == null)
|
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
||||||
continue;
|
diskspace.ItemId = item.Id;
|
||||||
|
//diskspace.DiskSpace = 0;
|
||||||
string mailboxName = name.Substring(0, name.IndexOf("@"));
|
diskspace.DiskSpace = userStats.BytesSize;
|
||||||
string domainName = name.Substring(name.IndexOf("@") + 1);
|
itemsDiskspace.Add(diskspace);
|
||||||
|
Log.WriteEnd(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
string mailboxPath = Path.Combine(DomainsPath, String.Format("{0}\\Users\\{1}", domainName, mailboxName));
|
|
||||||
|
|
||||||
Log.WriteStart(String.Format("Calculating '{0}' folder size", mailboxPath));
|
|
||||||
|
|
||||||
// calculate disk space
|
|
||||||
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
|
||||||
diskspace.ItemId = item.Id;
|
|
||||||
//diskspace.DiskSpace = 0;
|
|
||||||
diskspace.DiskSpace = FileUtils.CalculateFolderSize(mailboxPath);
|
|
||||||
itemsDiskspace.Add(diskspace);
|
|
||||||
Log.WriteEnd(String.Format("Calculating '{0}' folder size", mailboxPath));
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -200,29 +200,23 @@ namespace WebsitePanel.Providers.Mail
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
svcUserAdmin users = new svcUserAdmin();
|
||||||
|
PrepareProxy(users);
|
||||||
|
|
||||||
// get mailbox size
|
StatInfoResult userStats = users.GetUserStats(AdminUsername, AdminPassword, item.Name, DateTime.Now, DateTime.Now);
|
||||||
string name = item.Name;
|
if (!userStats.Result)
|
||||||
|
{
|
||||||
// try to get SmarterMail postoffices path
|
throw new Exception(userStats.Message);
|
||||||
string poPath = DomainsPath;
|
}
|
||||||
if (poPath == null)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
string mailboxName = name.Substring(0, name.IndexOf("@"));
|
|
||||||
string domainName = name.Substring(name.IndexOf("@") + 1);
|
|
||||||
|
|
||||||
string mailboxPath = Path.Combine(DomainsPath, String.Format("{0}\\Users\\{1}", domainName, mailboxName));
|
|
||||||
|
|
||||||
Log.WriteStart(String.Format("Calculating '{0}' folder size", mailboxPath));
|
|
||||||
|
|
||||||
|
Log.WriteStart(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
// calculate disk space
|
// calculate disk space
|
||||||
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
ServiceProviderItemDiskSpace diskspace = new ServiceProviderItemDiskSpace();
|
||||||
diskspace.ItemId = item.Id;
|
diskspace.ItemId = item.Id;
|
||||||
//diskspace.DiskSpace = 0;
|
//diskspace.DiskSpace = 0;
|
||||||
diskspace.DiskSpace = FileUtils.CalculateFolderSize(mailboxPath);
|
diskspace.DiskSpace = userStats.BytesSize;
|
||||||
itemsDiskspace.Add(diskspace);
|
itemsDiskspace.Add(diskspace);
|
||||||
Log.WriteEnd(String.Format("Calculating '{0}' folder size", mailboxPath));
|
Log.WriteEnd(String.Format("Calculating mail account '{0}' size", item.Name));
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
<FileVersion>$(BUILD_NUMBER)</FileVersion>
|
<FileVersion>$(BUILD_NUMBER)</FileVersion>
|
||||||
<VersionLabel>$(BUILD_NUMBER)</VersionLabel>
|
<VersionLabel>$(BUILD_NUMBER)</VersionLabel>
|
||||||
<ReleaseDate>2012-12-07</ReleaseDate>
|
<ReleaseDate>2012-1-11</ReleaseDate>
|
||||||
<BuildConfiguration></BuildConfiguration>
|
<BuildConfiguration></BuildConfiguration>
|
||||||
<RootFolder>..</RootFolder>
|
<RootFolder>..</RootFolder>
|
||||||
<TrunkFolder>$(RootFolder)\WebsitePanel</TrunkFolder>
|
<TrunkFolder>$(RootFolder)\WebsitePanel</TrunkFolder>
|
||||||
|
@ -20,10 +20,10 @@
|
||||||
<DiffCmd>$(TrunkFolder)\Tools\Diff.exe</DiffCmd>
|
<DiffCmd>$(TrunkFolder)\Tools\Diff.exe</DiffCmd>
|
||||||
<!-- Lets keep all tools we need for the build together in a well-known place to avoid BUILD HELL -->
|
<!-- Lets keep all tools we need for the build together in a well-known place to avoid BUILD HELL -->
|
||||||
<SqlCmd Condition="Exists('$(RootFolder)\tools\sqlcmd\sqlcmd.exe')">"$(RootFolder)\tools\sqlcmd\sqlcmd.exe" -S (local)\SQLEXPRESS -E</SqlCmd>
|
<SqlCmd Condition="Exists('$(RootFolder)\tools\sqlcmd\sqlcmd.exe')">"$(RootFolder)\tools\sqlcmd\sqlcmd.exe" -S (local)\SQLEXPRESS -E</SqlCmd>
|
||||||
<MSDeployPath Condition="Exists('$(RootFolder)\tools\webdeploy\msdeploy.exe')">"$(RootFolder)\tools\webdeploy\msdeploy.exe"</MSDeployPath>
|
<MSDeployPath Condition="Exists('$(RootFolder)\tools\webdeploy\msdeploy.exe')">"$(RootFolder)\tools\webdeploy\msdeploy.exe"</MSDeployPath>
|
||||||
<ZipCmd>"C:\Program Files\7-Zip\7z.exe"</ZipCmd>
|
<ZipCmd>"C:\Program Files\7-Zip\7z.exe"</ZipCmd>
|
||||||
|
|
||||||
<DataBaseName>WebsitePanel_build</DataBaseName>
|
<DataBaseName>WebsitePanel_build</DataBaseName>
|
||||||
<MSDeployConnectionString>server=(local)\SQLEXPRESS;database=$(DataBaseName);Integrated Security=true;</MSDeployConnectionString>
|
<MSDeployConnectionString>server=(local)\SQLEXPRESS;database=$(DataBaseName);Integrated Security=true;</MSDeployConnectionString>
|
||||||
|
|
||||||
<PortalSrc>$(TrunkFolder)\Sources\WebsitePanel.WebPortal</PortalSrc>
|
<PortalSrc>$(TrunkFolder)\Sources\WebsitePanel.WebPortal</PortalSrc>
|
||||||
|
@ -59,6 +59,11 @@
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Label="WebPlatformFeed">
|
||||||
|
<!-- URI where to locate the installer's distributive online -->
|
||||||
|
<InstallerRemoteUri>http://www.websitepanel.net/files/$(Version)/WebsitePanelInstaller-$(Version)-webpi.msi</InstallerRemoteUri>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="GenerateBuildVersionFilesInstaller">
|
<Target Name="GenerateBuildVersionFilesInstaller">
|
||||||
<AssemblyInfo CodeLanguage="CS" OutputFile="$(RootFolder)\WebsitePanel.Installer\Sources\VersionInfo.cs" AssemblyCompany="Outercurve Foundation" AssemblyCopyright="Copyright © 2012 Outercurve Foundation." AssemblyVersion="$(VersionLabel)" AssemblyFileVersion="$(FileVersion)" AssemblyInformationalVersion="$(Version)" />
|
<AssemblyInfo CodeLanguage="CS" OutputFile="$(RootFolder)\WebsitePanel.Installer\Sources\VersionInfo.cs" AssemblyCompany="Outercurve Foundation" AssemblyCopyright="Copyright © 2012 Outercurve Foundation." AssemblyVersion="$(VersionLabel)" AssemblyFileVersion="$(FileVersion)" AssemblyInformationalVersion="$(Version)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
@ -185,7 +190,7 @@
|
||||||
<Copy SourceFiles="@(ImportCsvBuildFiles)" DestinationFolder="$(ImportCsvBuild)\%(RecursiveDir)" />
|
<Copy SourceFiles="@(ImportCsvBuildFiles)" DestinationFolder="$(ImportCsvBuild)\%(RecursiveDir)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="CreateHyperVUtilsBuild" DependsOnTargets="CreateImportCsvBuild">
|
<Target Name="CreateHyperVUtilsBuild" DependsOnTargets="CreateImportCsvBuild">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<HyperVUtilsExclude Include="$(HyperVUtilsSrc)\**\*.pdb" Condition="'$(BuildConfiguration)' == 'Release'" />
|
<HyperVUtilsExclude Include="$(HyperVUtilsSrc)\**\*.pdb" Condition="'$(BuildConfiguration)' == 'Release'" />
|
||||||
<HyperVUtilsExclude Include="$(HyperVUtilsSrc)\**\*.vshost.*" />
|
<HyperVUtilsExclude Include="$(HyperVUtilsSrc)\**\*.vshost.*" />
|
||||||
|
@ -194,7 +199,7 @@
|
||||||
<Copy SourceFiles="@(HyperVUtilsBuildFiles)" DestinationFolder="$(HyperVUtilsBuild)\%(RecursiveDir)" />
|
<Copy SourceFiles="@(HyperVUtilsBuildFiles)" DestinationFolder="$(HyperVUtilsBuild)\%(RecursiveDir)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="CreateVMConfigBuild" DependsOnTargets="CreateHyperVUtilsBuild">
|
<Target Name="CreateVMConfigBuild" DependsOnTargets="CreateHyperVUtilsBuild">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<VMConfigExclude Include="$(VMConfigSrc)\**\*.pdb" Condition="'$(BuildConfiguration)' == 'Release'" />
|
<VMConfigExclude Include="$(VMConfigSrc)\**\*.pdb" Condition="'$(BuildConfiguration)' == 'Release'" />
|
||||||
<VMConfigExclude Include="$(VMConfigSrc)\**\*.vshost.*" />
|
<VMConfigExclude Include="$(VMConfigSrc)\**\*.vshost.*" />
|
||||||
|
@ -379,7 +384,7 @@
|
||||||
<Copy SourceFiles="$(RootFolder)\LICENSE.txt" DestinationFolder="$(ImportCsvInstall)" />
|
<Copy SourceFiles="$(RootFolder)\LICENSE.txt" DestinationFolder="$(ImportCsvInstall)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="CreateHyperVUtilsCsvInstall" DependsOnTargets="CreateImportCsvInstall">
|
<Target Name="CreateHyperVUtilsCsvInstall" DependsOnTargets="CreateImportCsvInstall">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<HyperVUtilsDeployFiles Include="$(HyperVUtilsBuild)\**\*.*" />
|
<HyperVUtilsDeployFiles Include="$(HyperVUtilsBuild)\**\*.*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -389,7 +394,7 @@
|
||||||
<Copy SourceFiles="$(RootFolder)\LICENSE.txt" DestinationFolder="$(HyperVUtilsInstall)" />
|
<Copy SourceFiles="$(RootFolder)\LICENSE.txt" DestinationFolder="$(HyperVUtilsInstall)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="CreateVMConfigInstall" DependsOnTargets="CreateHyperVUtilsCsvInstall">
|
<Target Name="CreateVMConfigInstall" DependsOnTargets="CreateHyperVUtilsCsvInstall">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<VMConfigDeployFiles Include="$(VMConfigBuild)\**\*.*" />
|
<VMConfigDeployFiles Include="$(VMConfigBuild)\**\*.*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -634,9 +639,15 @@
|
||||||
|
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="BuildWebPlatformInstallerFeed" DependsOnTargets="Deploy">
|
<Target Name="uploadwebpi" DependsOnTargets="BuildWebPlatformInstallerFeed">
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanelFeed-$(Version).xml" LocalFile="$(DeployFolder)\WebsitePanelFeed.xml" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<!-- This task depends on FTP upload task and will be run afterwards -->
|
||||||
|
<Target Name="BuildWebPlatformInstallerFeed" DependsOnTargets="uploadtoftp">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<InstallerFilePath Include="$(DeployFolder)\WebsitePanelInstaller.msi" />
|
<!-- This will generate path to a temporary file that will be used by WebDownload task below to download the installer's distributive locally -->
|
||||||
|
<InstallerFilePath Include="$([System.IO.Path]::GetTempFileName())" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GetFileSizeScript>
|
<GetFileSizeScript>
|
||||||
|
@ -663,13 +674,14 @@
|
||||||
]]>
|
]]>
|
||||||
</ComputeChecksumScript>
|
</ComputeChecksumScript>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<WebDownload FileUri="$(InstallerRemoteUri)" FileName="%(InstallerFilePath.FullPath)" />
|
||||||
<Script Language="C#" Code="$(ComputeChecksumScript)">
|
<Script Language="C#" Code="$(ComputeChecksumScript)">
|
||||||
<Output TaskParameter="ReturnValue" PropertyName="InstallerFileChecksum" />
|
<Output TaskParameter="ReturnValue" PropertyName="InstallerFileChecksum" />
|
||||||
</Script>
|
</Script>
|
||||||
<Script Language="C#" Code="$(GetFileSizeScript)">
|
<Script Language="C#" Code="$(GetFileSizeScript)">
|
||||||
<Output TaskParameter="ReturnValue" PropertyName="InstallerFileSize" />
|
<Output TaskParameter="ReturnValue" PropertyName="InstallerFileSize" />
|
||||||
</Script>
|
</Script>
|
||||||
|
<Delete Files="%(InstallerFilePath.FullPath)" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Tokens Include="ProductVersion">
|
<Tokens Include="ProductVersion">
|
||||||
<ReplacementValue>$(Version)</ReplacementValue>
|
<ReplacementValue>$(Version)</ReplacementValue>
|
||||||
|
@ -687,33 +699,36 @@
|
||||||
<ReplacementValue>$(InstallerFileChecksum)</ReplacementValue>
|
<ReplacementValue>$(InstallerFileChecksum)</ReplacementValue>
|
||||||
</Tokens>
|
</Tokens>
|
||||||
<Tokens Include="InstallerFileUrl">
|
<Tokens Include="InstallerFileUrl">
|
||||||
<ReplacementValue>TODO: Evaluate MSI file URL</ReplacementValue>
|
<ReplacementValue>$(InstallerRemoteUri)</ReplacementValue>
|
||||||
</Tokens>
|
</Tokens>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<TemplateFile Template="$(TrunkFolder)\WebsitePanelFeedTemplate.xml" OutputFilename="$(DeployFolder)\WebsitePanelFeed.xml" Tokens="@(Tokens)" />
|
<TemplateFile Template="$(TrunkFolder)\WebsitePanelFeedTemplate.xml" OutputFilename="$(DeployFolder)\WebsitePanelFeed.xml" Tokens="@(Tokens)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="uploadtoftp">
|
<Target Name="upload-sp-update">
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/Manual-Update-sp-$(Version).zip" LocalFile="$(DeployFolder)\Manual-Update.zip" />
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Portal-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-Portal-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-EnterpriseServer-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-EnterpriseServer-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Server-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-Server-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-StandaloneServerSetup-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-StandaloneServerSetup-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Portal-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-Portal-$(Version)-Update.zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-EnterpriseServer-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-EnterpriseServer-$(Version)-Update.zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Server-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-Server-$(Version)-Update.zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Installer-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-Installer-$(Version)-Update.zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Import-CsvBulk-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-Import-CsvBulk-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Import-Enterprise-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-Import-Enterprise-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-AWStatsViewer-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-AWStatsViewer-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-WSPTransportAgent-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-WSPTransportAgent-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel.LocalizationToolkit-$(Version).msi" LocalFile="$(ToolsFolder)\WebsitePanel.LocalizationToolkit.msi" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanelInstaller-$(Version).msi" LocalFile="$(DeployFolder)\WebsitePanelInstaller.msi" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-HyperVUtils-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-HyperVUtils-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-VMConfig-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-VMConfig-$(Version).zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/Manual-Update-$(Version).zip" LocalFile="$(DeployFolder)\Manual-Update.zip" />
|
|
||||||
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanelFeed-$(Version).xml" LocalFile="$(DeployFolder)\WebsitePanelFeed.xml" />
|
|
||||||
</Target>
|
</Target>
|
||||||
|
<Target Name="uploadtoftp">
|
||||||
|
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Portal-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-Portal-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-EnterpriseServer-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-EnterpriseServer-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Server-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-Server-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-StandaloneServerSetup-$(Version).zip" LocalFile="$(DeployFolder)\WebsitePanel-StandaloneServerSetup-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Portal-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-Portal-$(Version)-Update.zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-EnterpriseServer-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-EnterpriseServer-$(Version)-Update.zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Server-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-Server-$(Version)-Update.zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Installer-$(Version)-Update.zip" LocalFile="$(DeployFolder)\WebsitePanel-Installer-$(Version)-Update.zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Import-CsvBulk-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-Import-CsvBulk-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-Import-Enterprise-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-Import-Enterprise-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-AWStatsViewer-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-AWStatsViewer-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-WSPTransportAgent-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-WSPTransportAgent-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel.LocalizationToolkit-$(Version).msi" LocalFile="$(ToolsFolder)\WebsitePanel.LocalizationToolkit.msi" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanelInstaller-$(Version).msi" LocalFile="$(DeployFolder)\WebsitePanelInstaller.msi" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanelInstaller-$(Version)-webpi.msi" LocalFile="$(DeployFolder)\WebsitePanelInstaller.msi" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-HyperVUtils-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-HyperVUtils-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/WebsitePanel-VMConfig-$(Version).zip" LocalFile="$(ToolsFolder)\WebsitePanel-VMConfig-$(Version).zip" />
|
||||||
|
<FtpUpload Username="$(ftpUsername)" password="$(ftpPassword)" RemoteUri="ftp://$(ftphost)/Manual-Update-$(Version).zip" LocalFile="$(DeployFolder)\Manual-Update.zip" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Import Project="$(RootFolder)\tools\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
|
<Import Project="$(RootFolder)\tools\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue