diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/MailAccountsEditAccount.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/MailAccountsEditAccount.ascx.cs
index 7facf242..1ddef607 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/MailAccountsEditAccount.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/MailAccountsEditAccount.ascx.cs
@@ -188,36 +188,40 @@ namespace WebsitePanel.Portal
item.Password = passwordControl.Password;
item.MaxMailboxSize = Utils.ParseInt(txtMailBoxSizeLimit.Text);
- //checking if account name is different from existing e-mail lists
- MailList[] lists = ES.Services.MailServers.GetMailLists(PanelSecurity.PackageId, true);
- foreach (MailList list in lists)
+ // Only check for conflicting names if creating new item
+ if (PanelRequest.ItemID == 0)
{
- if (item.Name == list.Name)
+ //checking if account name is different from existing e-mail lists
+ MailList[] lists = ES.Services.MailServers.GetMailLists(PanelSecurity.PackageId, true);
+ foreach (MailList list in lists)
{
- ShowWarningMessage("MAIL_ACCOUNT_NAME");
- return;
+ if (item.Name == list.Name)
+ {
+ ShowWarningMessage("MAIL_ACCOUNT_NAME");
+ return;
+ }
}
- }
- //checking if account name is different from existing e-mail groups
- MailGroup[] mailgroups = ES.Services.MailServers.GetMailGroups(PanelSecurity.PackageId, true);
- foreach (MailGroup group in mailgroups)
- {
- if (item.Name == group.Name)
+ //checking if account name is different from existing e-mail groups
+ MailGroup[] mailgroups = ES.Services.MailServers.GetMailGroups(PanelSecurity.PackageId, true);
+ foreach (MailGroup group in mailgroups)
{
- ShowWarningMessage("MAIL_ACCOUNT_NAME");
- return;
+ if (item.Name == group.Name)
+ {
+ ShowWarningMessage("MAIL_ACCOUNT_NAME");
+ return;
+ }
}
- }
- //checking if account name is different from existing forwardings
- MailAlias[] forwardings = ES.Services.MailServers.GetMailForwardings(PanelSecurity.PackageId, true);
- foreach (MailAlias forwarding in forwardings)
- {
- if (item.Name == forwarding.Name)
+ //checking if account name is different from existing forwardings
+ MailAlias[] forwardings = ES.Services.MailServers.GetMailForwardings(PanelSecurity.PackageId, true);
+ foreach (MailAlias forwarding in forwardings)
{
- ShowWarningMessage("MAIL_ACCOUNT_NAME");
- return;
+ if (item.Name == forwarding.Name)
+ {
+ ShowWarningMessage("MAIL_ACCOUNT_NAME");
+ return;
+ }
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/OdbcEditSource.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/OdbcEditSource.ascx.cs
index 0ed91167..014be7c2 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/OdbcEditSource.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/OdbcEditSource.ascx.cs
@@ -207,10 +207,12 @@ namespace WebsitePanel.Portal
sqlDatabases.AddRange(ES.Services.DatabaseServers.GetSqlDatabases(packageId, ResourceGroups.MsSql2005, false));
sqlDatabases.AddRange(ES.Services.DatabaseServers.GetSqlDatabases(packageId, ResourceGroups.MsSql2008, false));
sqlDatabases.AddRange(ES.Services.DatabaseServers.GetSqlDatabases(packageId, ResourceGroups.MsSql2012, false));
+ sqlDatabases.AddRange(ES.Services.DatabaseServers.GetSqlDatabases(packageId, ResourceGroups.MsSql2014, false));
sqlUsers.AddRange(ES.Services.DatabaseServers.GetSqlUsers(packageId, ResourceGroups.MsSql2000, false));
sqlUsers.AddRange(ES.Services.DatabaseServers.GetSqlUsers(packageId, ResourceGroups.MsSql2005, false));
sqlUsers.AddRange(ES.Services.DatabaseServers.GetSqlUsers(packageId, ResourceGroups.MsSql2008, false));
sqlUsers.AddRange(ES.Services.DatabaseServers.GetSqlUsers(packageId, ResourceGroups.MsSql2012, false));
+ sqlUsers.AddRange(ES.Services.DatabaseServers.GetSqlUsers(packageId, ResourceGroups.MsSql2014, false));
}
else if (driverName == "MySql")
{
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditAccount.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditAccount.ascx.resx
new file mode 100644
index 00000000..946cd8c0
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditAccount.ascx.resx
@@ -0,0 +1,273 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Change password
+
+
+
+
+
+ Enable delete of older messages
+
+
+
+
+
+ Delete Message on Forward
+
+
+
+
+
+ Domain Administrator
+
+
+
+
+
+ Only respond between these dates
+
+
+
+
+
+ Disabled (Login)
+
+
+ Disabled (Login, Receive)
+
+
+ Disabled (Tarpitting)
+
+
+ Enabled
+
+
+ Respond always (can cause loop)
+
+
+ Disabled
+
+
+ Respond once
+
+
+ Respond once in period
+
+
+ Account state:
+
+
+
+
+
+ Account type:
+
+
+
+
+
+ Delete older than (days):
+
+
+
+
+
+ Forward older than (days):
+
+
+
+
+
+ Forward to:
+
+
+
+
+
+ Forward mail to address:
+
+
+
+
+
+ Full Name:
+
+
+
+
+
+ Message:
+
+
+
+
+
+ Responder type:
+
+
+
+
+
+ Respond period in days:
+
+
+
+
+
+ Respond with reply from:
+
+
+
+
+
+ Subject:
+
+
+
+
+
+ Respond days must be between 0 and 63 days
+
+
+
+
+
+
+
+
+ Autoresponder
+
+
+ Mail Forwarding
+
+
+ Respond from:
+
+
+ Respond To:
+
+
+ 0 means unlimited
+
+
+ Handle older mails
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditDomain.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditDomain.ascx.resx
new file mode 100644
index 00000000..3182ec47
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditDomain.ascx.resx
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Catch-All Account:
+
+
+
+
+
+ Send out messages limit (#/Day):
+
+
+
+
+
+ Send out data limit per day, MB:
+
+
+
+
+
+ Domain Disk Space, MB:
+
+
+
+
+
+ Max users:
+
+
+
+
+
+ Postmaster Account:
+
+
+
+
+
+ <Not Selected>
+
+
+
+
+
+ None, reject mail for unknown users
+
+
+
+
+
+ 0 means unlimited
+
+
+ Default user max message size, MB:
+
+
+ Default user send out data limit per day, MB:
+
+
+ Default user send out messages limit (#/Day):
+
+
+ Default user quota, MB:
+
+
+ Limits
+
+
+ Value must be zero or greater
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditGroup.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditGroup.ascx.resx
new file mode 100644
index 00000000..e1dc6f01
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditGroup.ascx.resx
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Group e-mails:
+
+
+
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditList.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditList.ascx.resx
new file mode 100644
index 00000000..3f411abc
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_EditList.ascx.resx
@@ -0,0 +1,478 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ List Additional Options
+
+
+ Allow command in subject
+
+
+
+
+
+ DigestMailingList
+
+
+
+
+
+ Enable Lists command
+
+
+
+
+
+ Enable Review command
+
+
+
+
+
+ Enable join (subscribe) command
+
+
+
+
+
+ Enable leave (unsubscribe) command
+
+
+
+
+
+ Enable Vacation/No vacation command
+
+
+
+
+
+ Enable Which command
+
+
+
+
+
+ Moderated listserver
+
+
+
+
+
+ Enabled
+
+
+ Reply To List
+
+
+ Notify owner of join
+
+
+
+
+
+ Send to sender
+
+
+
+
+
+ Notify owner of leave
+
+
+
+
+
+ Set recipient to To header
+
+
+
+
+
+ Enabled
+
+
+ Suppress command responses
+
+
+
+
+
+ No confirmation
+
+
+ Owner confirmed
+
+
+ User confirmed
+
+
+ Moderator should be within mail domain where Mail List is located
+
+
+
+
+
+
+
+
+ Anyone
+
+
+ Members Only
+
+
+
+
+
+ List
+
+
+ Moderator
+
+
+ Sender
+
+
+ Digest and receive
+
+
+ Digest, receive and post
+
+
+ Post only
+
+
+ Receive only
+
+
+ Receive and post
+
+
+ No change
+
+
+ Set to sender
+
+
+ Set to value
+
+
+ Enable Unsubscribe from Subject:
+
+
+ Enable Digest Mode:
+
+
+ Enable LIST Command:
+
+
+ Enable SUBSCRIBE Command:
+
+
+ Command password:
+
+
+
+
+
+ Subscription:
+
+
+
+
+
+ Default Rights:
+
+
+
+
+
+ List Description:
+
+
+
+
+
+ From Header:
+
+
+
+
+
+ From Header Value:
+
+
+
+
+
+ List From Address:
+
+
+ List Options:
+
+
+ List Reply To Address:
+
+
+ List To Address:
+
+
+ Max members count:
+
+
+
+
+
+ Max Message Size, kB:
+
+
+
+
+
+ Max # of messages to send out in 1 minute:
+
+
+
+
+
+ Max Recipients per Message:
+
+
+ Mailing List Members:
+
+
+ Members Source:
+
+
+
+
+
+ Moderation is Enabled:
+
+
+ List Moderator:
+
+
+
+
+
+ Originator:
+
+
+
+
+
+ Password Protection:
+
+
+
+
+
+ Posting mode:
+
+
+
+
+
+ Posting password:
+
+
+
+
+
+ Subscribers Reply To:
+
+
+ Reply-To Header:
+
+
+
+
+
+ Reply-To Header Value:
+
+
+
+
+
+ Subject Prefix:
+
+
+
+
+
+ Send Subscribe Email:
+
+
+ Send Unsubscribe Email:
+
+
+ Blank
+
+
+ Owner
+
+
+ Sender
+
+
+ Client Moderated
+
+
+ Not password protected
+
+
+ Server Moderated
+
+
+ <Choose a moderator>
+
+
+ All Domain Admins
+
+
+ All Domain Users
+
+
+ From members list on this page
+
+
+ 0 means unlimited
+
+
+ Message
+
+
+ Options
+
+
+ Security
+
+
+ Value must be zero or greater
+ .
+
+
+ Value must be zero or greater
+
+
+ Value must be zero or greater
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_Settings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_Settings.ascx.resx
new file mode 100644
index 00000000..9b5d5338
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/IceWarp_Settings.ascx.resx
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Domain Template Name:
+
+
+
+
+
+ Public IP Address:
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx
new file mode 100644
index 00000000..4d4122d3
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx
@@ -0,0 +1,208 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IceWarp_EditAccount.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.IceWarp_EditAccount" %>
+<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %>
+<%@ Register TagPrefix="wsp" TagName="Calendar" Src="../UserControls/CalendarControl.ascx" %>
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx.cs
new file mode 100644
index 00000000..f047b103
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx.cs
@@ -0,0 +1,141 @@
+// Copyright (c) 2014, Outercurve Foundation.
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without modification,
+// are permitted provided that the following conditions are met:
+//
+// - Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+//
+// - Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// - Neither the name of the Outercurve Foundation nor the names of its
+// contributors may be used to endorse or promote products derived from this
+// software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+using System;
+using WebsitePanel.Providers.Mail;
+
+namespace WebsitePanel.Portal.ProviderControls
+{
+ public partial class IceWarp_EditAccount : WebsitePanelControlBase, IMailEditAccountControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ // Hide some form items when creating a new account
+ passwordRow.Visible = (PanelRequest.ItemID > 0);
+ secAutoresponder.Visible = (PanelRequest.ItemID > 0);
+ secForwarding.Visible = (PanelRequest.ItemID > 0);
+ secOlderMails.Visible = (PanelRequest.ItemID > 0);
+ }
+
+ public void BindItem(MailAccount item)
+ {
+ txtFullName.Text = item.FullName;
+ Utils.SelectListItem(ddlAccountType, item.IceWarpAccountType);
+ Utils.SelectListItem(ddlAccountState, item.IceWarpAccountState);
+ Utils.SelectListItem(ddlRespondType, item.IceWarpRespondType);
+ chkRespondOnlyBetweenDates.Checked = item.RespondOnlyBetweenDates;
+
+ // Set respond dates to something useful if they are null in IceWarp
+ if (item.RespondFrom == DateTime.MinValue)
+ {
+ item.RespondFrom = DateTime.Today;
+ }
+ if (item.RespondTo == DateTime.MinValue)
+ {
+ item.RespondTo = DateTime.Today.AddDays(21);
+ }
+ calRespondFrom.SelectedDate = item.RespondFrom;
+ calRespondTo.SelectedDate = item.RespondTo;
+
+ chkRespondOnlyBetweenDates_CheckedChanged(this, null);
+
+ txtRespondPeriodInDays.Text = item.RespondPeriodInDays.ToString();
+ txtRespondWithReplyFrom.Text = item.RespondWithReplyFrom;
+ txtSubject.Text = item.ResponderSubject;
+ txtMessage.Text = item.ResponderMessage;
+ txtForward.Text = item.ForwardingAddresses != null ? String.Join("; ", item.ForwardingAddresses) : "";
+ cbDeleteOnForward.Checked = item.DeleteOnForward;
+ cbDomainAdmin.Visible = item.IsDomainAdminEnabled;
+ cbDomainAdmin.Checked = item.IsDomainAdmin;
+
+ ddlRespondType_SelectedIndexChanged(this, null);
+
+ cbForwardOlder.Checked = item.ForwardOlder;
+ txtForwardOlderDays.Text = item.ForwardOlderDays.ToString();
+ txtForwardOlderTo.Text = item.ForwardOlderTo;
+ cbForwardOlder_CheckedChanged(this, null);
+
+ cbDeleteOlder.Checked = item.DeleteOlder;
+ txtDeleteOlderDays.Text = item.DeleteOlderDays.ToString();
+ cbDeleteOlder_CheckedChanged(this, null);
+ }
+
+ public void SaveItem(MailAccount item)
+ {
+ item.FullName = txtFullName.Text;
+ item.IceWarpAccountType = Convert.ToInt32(ddlAccountType.SelectedValue);
+ item.IceWarpAccountState = Convert.ToInt32(ddlAccountState.SelectedValue);
+ item.IceWarpRespondType = Convert.ToInt32(ddlRespondType.SelectedValue);
+ if (!string.IsNullOrWhiteSpace(txtRespondPeriodInDays.Text))
+ {
+ item.RespondPeriodInDays = Convert.ToInt32(txtRespondPeriodInDays.Text);
+ }
+ item.RespondOnlyBetweenDates = chkRespondOnlyBetweenDates.Checked;
+ item.RespondFrom = calRespondFrom.SelectedDate;
+ item.RespondTo = calRespondTo.SelectedDate;
+ item.RespondWithReplyFrom = txtRespondWithReplyFrom.Text;
+ item.ResponderSubject = txtSubject.Text;
+ item.ResponderMessage = txtMessage.Text;
+ item.ForwardingEnabled = !string.IsNullOrWhiteSpace(txtForward.Text);
+ item.ForwardingAddresses = Utils.ParseDelimitedString(txtForward.Text, ';', ' ', ',');
+ item.DeleteOnForward = cbDeleteOnForward.Checked;
+ item.ChangePassword = cbChangePassword.Checked;
+ item.ChangePassword = cbChangePassword.Checked;
+ item.IsDomainAdmin = cbDomainAdmin.Checked;
+
+ item.DeleteOlder = cbDeleteOlder.Checked;
+ item.DeleteOlderDays = Convert.ToInt32(txtDeleteOlderDays.Text);
+
+ item.ForwardOlder = cbForwardOlder.Checked;
+ item.ForwardOlderDays = Convert.ToInt32(txtForwardOlderDays.Text);
+ item.ForwardOlderTo = txtForwardOlderTo.Text;
+ }
+
+ protected void ddlRespondType_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ RespondPeriod.Visible = ddlRespondType.SelectedValue == "3";
+ RespondEnabled.Visible = Convert.ToInt32(ddlRespondType.SelectedValue) > 0;
+ }
+
+ protected void cbForwardOlder_CheckedChanged(object sender, EventArgs e)
+ {
+ ForwardOlderEnabled.Visible = cbForwardOlder.Checked;
+ }
+
+ protected void cbDeleteOlder_CheckedChanged(object sender, EventArgs e)
+ {
+ DeleteOlderEnabled.Visible = cbDeleteOlder.Checked;
+ }
+
+ protected void chkRespondOnlyBetweenDates_CheckedChanged(object sender, EventArgs e)
+ {
+ RespondFrom.Visible = chkRespondOnlyBetweenDates.Checked;
+ RespondTo.Visible = chkRespondOnlyBetweenDates.Checked;
+ }
+ }
+}
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx.designer.cs
new file mode 100644
index 00000000..8478febf
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditAccount.ascx.designer.cs
@@ -0,0 +1,474 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WebsitePanel.Portal.ProviderControls {
+
+
+ public partial class IceWarp_EditAccount {
+
+ ///
+ /// passwordRow control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow passwordRow;
+
+ ///
+ /// cbChangePassword control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbChangePassword;
+
+ ///
+ /// cbDomainAdmin control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbDomainAdmin;
+
+ ///
+ /// lblAccountType control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblAccountType;
+
+ ///
+ /// ddlAccountType control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlAccountType;
+
+ ///
+ /// lblAccountState control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblAccountState;
+
+ ///
+ /// ddlAccountState control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlAccountState;
+
+ ///
+ /// lblFullName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblFullName;
+
+ ///
+ /// txtFullName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtFullName;
+
+ ///
+ /// secAutoresponder control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CollapsiblePanel secAutoresponder;
+
+ ///
+ /// AutoresponderPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel AutoresponderPanel;
+
+ ///
+ /// AutoresponderUpdatePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel AutoresponderUpdatePanel;
+
+ ///
+ /// lblResponderEnabled control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblResponderEnabled;
+
+ ///
+ /// ddlRespondType control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlRespondType;
+
+ ///
+ /// RespondPeriod control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl RespondPeriod;
+
+ ///
+ /// lblRespondPeriodInDays control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblRespondPeriodInDays;
+
+ ///
+ /// txtRespondPeriodInDays control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtRespondPeriodInDays;
+
+ ///
+ /// RespondPeriodInDaysValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator RespondPeriodInDaysValidator;
+
+ ///
+ /// RespondEnabled control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl RespondEnabled;
+
+ ///
+ /// chkRespondOnlyBetweenDates control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkRespondOnlyBetweenDates;
+
+ ///
+ /// RespondFrom control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow RespondFrom;
+
+ ///
+ /// lblRespondFrom control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblRespondFrom;
+
+ ///
+ /// calRespondFrom control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CalendarControl calRespondFrom;
+
+ ///
+ /// RespondTo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow RespondTo;
+
+ ///
+ /// lblRespondTo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblRespondTo;
+
+ ///
+ /// calRespondTo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CalendarControl calRespondTo;
+
+ ///
+ /// lblSubject control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblSubject;
+
+ ///
+ /// txtSubject control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtSubject;
+
+ ///
+ /// lblRespondWithReplyFrom control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblRespondWithReplyFrom;
+
+ ///
+ /// txtRespondWithReplyFrom control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtRespondWithReplyFrom;
+
+ ///
+ /// lblMessage control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMessage;
+
+ ///
+ /// txtMessage control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtMessage;
+
+ ///
+ /// secForwarding control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CollapsiblePanel secForwarding;
+
+ ///
+ /// ForwardingPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel ForwardingPanel;
+
+ ///
+ /// lblForwardTo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblForwardTo;
+
+ ///
+ /// txtForward control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtForward;
+
+ ///
+ /// cbDeleteOnForward control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbDeleteOnForward;
+
+ ///
+ /// secOlderMails control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CollapsiblePanel secOlderMails;
+
+ ///
+ /// OlderMailsPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel OlderMailsPanel;
+
+ ///
+ /// DeleteOlderUpdatePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel DeleteOlderUpdatePanel;
+
+ ///
+ /// cbDeleteOlder control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbDeleteOlder;
+
+ ///
+ /// DeleteOlderEnabled control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl DeleteOlderEnabled;
+
+ ///
+ /// lblDeleteOlderDays control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDeleteOlderDays;
+
+ ///
+ /// txtDeleteOlderDays control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtDeleteOlderDays;
+
+ ///
+ /// ForwardOlderUpdatePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel ForwardOlderUpdatePanel;
+
+ ///
+ /// cbForwardOlder control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbForwardOlder;
+
+ ///
+ /// ForwardOlderEnabled control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl ForwardOlderEnabled;
+
+ ///
+ /// lblForwardOlderDays control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblForwardOlderDays;
+
+ ///
+ /// txtForwardOlderDays control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtForwardOlderDays;
+
+ ///
+ /// lblForwardOlderTo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblForwardOlderTo;
+
+ ///
+ /// txtForwardOlderTo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtForwardOlderTo;
+ }
+}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx
new file mode 100644
index 00000000..819a0b43
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx
@@ -0,0 +1,133 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IceWarp_EditDomain.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.IceWarp_EditDomain" %>
+<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %>
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx.cs
new file mode 100644
index 00000000..c4e36d44
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx.cs
@@ -0,0 +1,121 @@
+// Copyright (c) 2014, Outercurve Foundation.
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without modification,
+// are permitted provided that the following conditions are met:
+//
+// - Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+//
+// - Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// - Neither the name of the Outercurve Foundation nor the names of its
+// contributors may be used to endorse or promote products derived from this
+// software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Linq;
+using System.Web.UI.WebControls;
+using WebsitePanel.EnterpriseServer;
+using WebsitePanel.Providers.Mail;
+
+namespace WebsitePanel.Portal.ProviderControls
+{
+ public partial class IceWarp_EditDomain : WebsitePanelControlBase, IMailEditDomainControl
+ {
+ private StringDictionary _serviceSettings;
+
+ private StringDictionary ServiceSettings
+ {
+ get
+ {
+ if (_serviceSettings != null)
+ return _serviceSettings;
+
+ _serviceSettings = new StringDictionary();
+ var domain = ES.Services.MailServers.GetMailDomain(PanelRequest.ItemID);
+
+ var settings = ES.Services.Servers.GetServiceSettings(domain.ServiceId);
+
+ foreach (var settingPair in settings.Select(setting => setting.Split('=')))
+ {
+ _serviceSettings.Add(settingPair[0], settingPair[1]);
+ }
+
+ return _serviceSettings;
+ }
+ }
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ AdvancedSettingsPanel.Visible = PanelSecurity.EffectiveUser.Role == UserRole.Administrator;
+ MaxDomainDiskSpaceValidator.MaximumValue = int.MaxValue.ToString();
+ MaxDomainUsersValidator.MaximumValue = int.MaxValue.ToString();
+ txtLimitNumberValidator.MaximumValue = int.MaxValue.ToString();
+ txtLimitVolumeValidator.MaximumValue = int.MaxValue.ToString();
+ txtDefaultUserMaxMessageSizeMegaByteValidator.MaximumValue = int.MaxValue.ToString();
+ txtDefaultUserMegaByteSendLimitValidator.MaximumValue = int.MaxValue.ToString();
+ txtDefaultUserQuotaInMBValidator.MaximumValue = int.MaxValue.ToString();
+ txtDefaultUserNumberSendLimitValidator.MaximumValue = int.MaxValue.ToString();
+ }
+
+ public void BindItem(MailDomain item)
+ {
+ // Hide/show controls when not enabled on service level
+ rowMaxDomainDiskSpace.Visible = ServiceSettings.ContainsKey("UseDomainDiskQuota") && Convert.ToBoolean(ServiceSettings["UseDomainDiskQuota"]);
+ rowDomainLimits.Visible = ServiceSettings.ContainsKey("UseDomainLimits") && Convert.ToBoolean(ServiceSettings["UseDomainLimits"]);
+ rowUserLimits.Visible = ServiceSettings.ContainsKey("UseUserLimits") && Convert.ToBoolean(ServiceSettings["UseUserLimits"]);
+
+ txtMaxDomainDiskSpace.Text = item.MaxDomainSizeInMB.ToString();
+ txtMaxDomainUsers.Text = item.MaxDomainUsers.ToString();
+ txtLimitVolume.Text = item.MegaByteSendLimit.ToString();
+ txtLimitNumber.Text = item.NumberSendLimit.ToString();
+ txtDefaultUserQuotaInMB.Text = item.DefaultUserQuotaInMB.ToString();
+ txtDefaultUserMaxMessageSizeMegaByte.Text = item.DefaultUserMaxMessageSizeMegaByte.ToString();
+ txtDefaultUserMegaByteSendLimit.Text = item.DefaultUserMegaByteSendLimit.ToString();
+ txtDefaultUserNumberSendLimit.Text = item.DefaultUserNumberSendLimit.ToString();
+
+ if (!IsPostBack)
+ {
+ var accounts = ES.Services.MailServers.GetMailAccounts(item.PackageId, false);
+ ddlCatchAllAccount.DataSource = accounts;
+ ddlCatchAllAccount.DataBind();
+ ddlPostMasterAccount.DataSource = accounts;
+ ddlPostMasterAccount.DataBind();
+ }
+
+ Utils.SelectListItem(ddlCatchAllAccount, item.CatchAllAccount);
+ Utils.SelectListItem(ddlPostMasterAccount, item.PostmasterAccount);
+
+ }
+
+ public void SaveItem(MailDomain item)
+ {
+ item.CatchAllAccount = ddlCatchAllAccount.SelectedValue;
+ item.PostmasterAccount = ddlPostMasterAccount.SelectedValue;
+ item.MaxDomainSizeInMB = Convert.ToInt32(txtMaxDomainDiskSpace.Text);
+ item.MaxDomainUsers = Convert.ToInt32(txtMaxDomainUsers.Text);
+ item.NumberSendLimit = Convert.ToInt32(txtLimitNumber.Text);
+ item.MegaByteSendLimit = Convert.ToInt32(txtLimitVolume.Text);
+ item.DefaultUserQuotaInMB = Convert.ToInt32(txtDefaultUserQuotaInMB.Text);
+ item.DefaultUserMaxMessageSizeMegaByte = Convert.ToInt32(txtDefaultUserMaxMessageSizeMegaByte.Text);
+ item.DefaultUserMegaByteSendLimit = Convert.ToInt32(txtDefaultUserMegaByteSendLimit.Text);
+ item.DefaultUserNumberSendLimit = Convert.ToInt32(txtDefaultUserNumberSendLimit.Text);
+ }
+ }
+}
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx.designer.cs
new file mode 100644
index 00000000..a01d59d7
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditDomain.ascx.designer.cs
@@ -0,0 +1,393 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WebsitePanel.Portal.ProviderControls {
+
+
+ public partial class IceWarp_EditDomain {
+
+ ///
+ /// lblPostMaster control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPostMaster;
+
+ ///
+ /// ddlPostMasterAccount control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlPostMasterAccount;
+
+ ///
+ /// lblCatchAll control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblCatchAll;
+
+ ///
+ /// ddlCatchAllAccount control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlCatchAllAccount;
+
+ ///
+ /// AdvancedSettingsPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel AdvancedSettingsPanel;
+
+ ///
+ /// secLimits control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CollapsiblePanel secLimits;
+
+ ///
+ /// LimitsPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel LimitsPanel;
+
+ ///
+ /// rowMaxDomainDiskSpace control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow rowMaxDomainDiskSpace;
+
+ ///
+ /// lblMaxDomainDiskSpace control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMaxDomainDiskSpace;
+
+ ///
+ /// txtMaxDomainDiskSpace control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtMaxDomainDiskSpace;
+
+ ///
+ /// MaxDomainDiskSpaceValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator MaxDomainDiskSpaceValidator;
+
+ ///
+ /// MaxDomainDiskSpaceRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator MaxDomainDiskSpaceRequiredValidator;
+
+ ///
+ /// lblMaxDomainUsers control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMaxDomainUsers;
+
+ ///
+ /// txtMaxDomainUsers control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtMaxDomainUsers;
+
+ ///
+ /// MaxDomainUsersValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator MaxDomainUsersValidator;
+
+ ///
+ /// MaxDomainUsersRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator MaxDomainUsersRequiredValidator;
+
+ ///
+ /// rowDomainLimits control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl rowDomainLimits;
+
+ ///
+ /// lblLimitVolume control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblLimitVolume;
+
+ ///
+ /// txtLimitVolume control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtLimitVolume;
+
+ ///
+ /// txtLimitVolumeValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtLimitVolumeValidator;
+
+ ///
+ /// txtLimitVolumeRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtLimitVolumeRequiredValidator;
+
+ ///
+ /// lblLimitNumber control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblLimitNumber;
+
+ ///
+ /// txtLimitNumber control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtLimitNumber;
+
+ ///
+ /// txtLimitNumberValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtLimitNumberValidator;
+
+ ///
+ /// txtLimitNumberRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtLimitNumberRequiredValidator;
+
+ ///
+ /// rowUserLimits control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl rowUserLimits;
+
+ ///
+ /// lblDefaultUserQuotaInMB control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDefaultUserQuotaInMB;
+
+ ///
+ /// txtDefaultUserQuotaInMB control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtDefaultUserQuotaInMB;
+
+ ///
+ /// txtDefaultUserQuotaInMBValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtDefaultUserQuotaInMBValidator;
+
+ ///
+ /// txtDefaultUserQuotaInMBRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtDefaultUserQuotaInMBRequiredValidator;
+
+ ///
+ /// lblDefaultUserMaxMessageSizeMegaByte control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDefaultUserMaxMessageSizeMegaByte;
+
+ ///
+ /// txtDefaultUserMaxMessageSizeMegaByte control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtDefaultUserMaxMessageSizeMegaByte;
+
+ ///
+ /// txtDefaultUserMaxMessageSizeMegaByteValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtDefaultUserMaxMessageSizeMegaByteValidator;
+
+ ///
+ /// txtDefaultUserMaxMessageSizeMegaByteRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtDefaultUserMaxMessageSizeMegaByteRequiredValidator;
+
+ ///
+ /// lblDefaultUserMegaByteSendLimit control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDefaultUserMegaByteSendLimit;
+
+ ///
+ /// txtDefaultUserMegaByteSendLimit control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtDefaultUserMegaByteSendLimit;
+
+ ///
+ /// txtDefaultUserMegaByteSendLimitValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtDefaultUserMegaByteSendLimitValidator;
+
+ ///
+ /// txtDefaultUserMegaByteSendLimitRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtDefaultUserMegaByteSendLimitRequiredValidator;
+
+ ///
+ /// lblDefaultUserNumberSendLimit control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDefaultUserNumberSendLimit;
+
+ ///
+ /// txtDefaultUserNumberSendLimit control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtDefaultUserNumberSendLimit;
+
+ ///
+ /// txtDefaultUserNumberSendLimitValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtDefaultUserNumberSendLimitValidator;
+
+ ///
+ /// txtDefaultUserNumberSendLimitRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtDefaultUserNumberSendLimitRequiredValidator;
+ }
+}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx
new file mode 100644
index 00000000..af5ce729
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx
@@ -0,0 +1 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IceWarp_EditForwarding.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.IceWarp_EditForwarding" %>
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx.cs
new file mode 100644
index 00000000..4fb7c1db
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx.cs
@@ -0,0 +1,51 @@
+// Copyright (c) 2014, Outercurve Foundation.
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without modification,
+// are permitted provided that the following conditions are met:
+//
+// - Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+//
+// - Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// - Neither the name of the Outercurve Foundation nor the names of its
+// contributors may be used to endorse or promote products derived from this
+// software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+using System;
+using WebsitePanel.Providers.Mail;
+
+namespace WebsitePanel.Portal.ProviderControls
+{
+ public partial class IceWarp_EditForwarding : WebsitePanelControlBase, IMailEditForwardingControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ public void BindItem(MailAlias item)
+ {
+
+ }
+
+ public void SaveItem(MailAlias item)
+ {
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx.designer.cs
new file mode 100644
index 00000000..d27ff92d
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditForwarding.ascx.designer.cs
@@ -0,0 +1,15 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WebsitePanel.Portal.ProviderControls {
+
+
+ public partial class IceWarp_EditForwarding {
+ }
+}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx
new file mode 100644
index 00000000..7afa035e
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx
@@ -0,0 +1,12 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IceWarp_EditGroup.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.IceWarp_EditGroup" %>
+<%@ Register TagPrefix="dnc" TagName="EditItemsList" Src="../MailEditItems.ascx" %>
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx.cs
new file mode 100644
index 00000000..f9df0a44
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx.cs
@@ -0,0 +1,51 @@
+// Copyright (c) 2014, Outercurve Foundation.
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without modification,
+// are permitted provided that the following conditions are met:
+//
+// - Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+//
+// - Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// - Neither the name of the Outercurve Foundation nor the names of its
+// contributors may be used to endorse or promote products derived from this
+// software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+using System;
+using WebsitePanel.Providers.Mail;
+
+namespace WebsitePanel.Portal.ProviderControls
+{
+ public partial class IceWarp_EditGroup : WebsitePanelControlBase, IMailEditGroupControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ }
+
+ public void BindItem(MailGroup item)
+ {
+ mailEditItems.Items = item.Members;
+ }
+
+ public void SaveItem(MailGroup item)
+ {
+ item.Members = mailEditItems.Items;
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx.designer.cs
new file mode 100644
index 00000000..1c962862
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditGroup.ascx.designer.cs
@@ -0,0 +1,33 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WebsitePanel.Portal.ProviderControls {
+
+
+ public partial class IceWarp_EditGroup {
+
+ ///
+ /// lblGroupMembers control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblGroupMembers;
+
+ ///
+ /// mailEditItems control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.MailEditItems mailEditItems;
+ }
+}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx
new file mode 100644
index 00000000..e210565a
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx
@@ -0,0 +1,319 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IceWarp_EditList.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.IceWarp_EditList" %>
+<%@ Register TagPrefix="dnc" TagName="EditItemsList" Src="../MailEditItems.ascx" %>
+<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %>
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+ Anyone
+ MembersOnly
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx.cs
new file mode 100644
index 00000000..857eebbd
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx.cs
@@ -0,0 +1,162 @@
+// Copyright (c) 2014, Outercurve Foundation.
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without modification,
+// are permitted provided that the following conditions are met:
+//
+// - Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+//
+// - Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// - Neither the name of the Outercurve Foundation nor the names of its
+// contributors may be used to endorse or promote products derived from this
+// software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+using System;
+using WebsitePanel.Providers.Mail;
+
+namespace WebsitePanel.Portal.ProviderControls
+{
+ public partial class IceWarp_EditList : WebsitePanelControlBase, IMailEditListControl
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ var moderators = ES.Services.MailServers.GetMailAccounts(PanelSecurity.PackageId, true);
+ ddlListModerators.DataSource = moderators;
+ ddlListModerators.DataBind();
+ }
+
+ txtMaxMembersValidator.MaximumValue = int.MaxValue.ToString();
+ txtMaxMessageSizeValidator.MaximumValue = int.MaxValue.ToString();
+ txtMaxMessagesPerMinuteValidator.MaximumValue = int.MaxValue.ToString();
+ }
+
+ public void BindItem(MailList item)
+ {
+ txtDescription.Text = item.Description;
+ if (!String.IsNullOrEmpty(item.ModeratorAddress))
+ {
+ ddlListModerators.SelectedValue = item.ModeratorAddress;
+ }
+ ddlMembersSource.SelectedValue = item.MembersSource.ToString();
+ mailEditItems.Items = item.Members;
+ ddlFromHeaderAction.SelectedValue = item.FromHeader.ToString();
+ ddlReplyToHeaderAction.SelectedValue = item.ReplyToHeader.ToString();
+ txtFromHeaderValue.Text = item.ListFromAddress;
+ txtReplyToHeaderValue.Text = item.ListReplyToAddress;
+ txtSubjectPrefix.Text = item.SubjectPrefix;
+ ddllblOriginator.SelectedValue = item.Originator.ToString();
+ ddlPostingMode.SelectedValue = item.PostingMode.ToString();
+ ddlPasswordProtection.SelectedValue = item.PasswordProtection.ToString();
+ txtPassword.Text = item.Password;
+ ddlDefaultRights.SelectedValue = ((int) item.DefaultRights).ToString();
+ txtMaxMessageSize.Text = item.MaxMessageSize.ToString();
+ txtMaxMembers.Text = item.MaxMembers.ToString();
+ chkSendToSender.Checked = item.SendToSender;
+ chkDigestMailingList.Checked = item.DigestMode;
+ txtMaxMessagesPerMinute.Text = item.MaxMessagesPerMinute.ToString();
+ chkSendSubscribe.Checked = item.SendSubscribe;
+ chkSendUnSubscribe.Checked = item.SendUnsubscribe;
+ ddlConfirmSubscription.SelectedValue = item.ConfirmSubscription.ToString();
+ chkCommandInSubject.Checked = item.CommandsInSubject;
+ chkEnableSubscribe.Checked = !item.DisableSubscribecommand;
+ chkEnableUnsubscribe.Checked = item.AllowUnsubscribe;
+ chkEnableLists.Checked = !item.DisableListcommand;
+ chkEnableWhich.Checked = !item.DisableWhichCommand;
+ chkEnableReview.Checked = !item.DisableReviewCommand;
+ chkEnableVacation.Checked = !item.DisableVacationCommand;
+ chkModerated.Checked = item.Moderated;
+ txtCommandPassword.Text = item.CommandPassword;
+ chkSuppressCommandResponses.Checked = item.SuppressCommandResponses;
+
+ ddlMembersSource_SelectedIndexChanged(this, null);
+ ddlFromHeaderAction_SelectedIndexChanged(this, null);
+ ddlReplyToHeaderAction_SelectedIndexChanged(this, null);
+ chkModerated_CheckedChanged(this, null);
+ ddlPasswordProtection_SelectedIndexChanged(this, null);
+ }
+
+ public void SaveItem(MailList item)
+ {
+ item.Description = txtDescription.Text;
+ item.ModeratorAddress = ddlListModerators.SelectedValue;
+ item.MembersSource = (IceWarpListMembersSource)Enum.Parse(typeof (IceWarpListMembersSource), ddlMembersSource.SelectedValue);
+ item.Members = mailEditItems.Items;
+ item.FromHeader = (IceWarpListFromAndReplyToHeader)Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlFromHeaderAction.SelectedValue);
+ item.ReplyToHeader = (IceWarpListFromAndReplyToHeader)Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlReplyToHeaderAction.SelectedValue);
+ item.ListFromAddress = txtFromHeaderValue.Text;
+ item.ListReplyToAddress = txtReplyToHeaderValue.Text;
+ item.SubjectPrefix = txtSubjectPrefix.Text;
+ item.Originator = (IceWarpListOriginator)Enum.Parse(typeof (IceWarpListOriginator), ddllblOriginator.SelectedValue);
+ item.PostingMode = (PostingMode)Enum.Parse(typeof (PostingMode), ddlPostingMode.SelectedValue);
+ item.PasswordProtection = (PasswordProtection)Enum.Parse(typeof (PasswordProtection), ddlPasswordProtection.SelectedValue);
+ item.Password = txtPassword.Text;
+ item.DefaultRights = (IceWarpListDefaultRights)Enum.Parse(typeof (IceWarpListDefaultRights), ddlDefaultRights.SelectedValue);
+ item.MaxMessageSize = Convert.ToInt32(txtMaxMessageSize.Text);
+ item.MaxMembers = Convert.ToInt32(txtMaxMembers.Text);
+ item.SendToSender = chkSendToSender.Checked;
+ item.DigestMode = chkDigestMailingList.Checked;
+ item.MaxMessagesPerMinute = Convert.ToInt32(txtMaxMessagesPerMinute.Text);
+ item.SendSubscribe = chkSendSubscribe.Checked;
+ item.SendUnsubscribe = chkSendUnSubscribe.Checked;
+ item.ConfirmSubscription = (IceWarpListConfirmSubscription)Enum.Parse(typeof (IceWarpListConfirmSubscription), ddlConfirmSubscription.SelectedValue);
+ item.CommandsInSubject = chkCommandInSubject.Checked;
+ item.DisableSubscribecommand = !chkEnableSubscribe.Checked;
+ item.AllowUnsubscribe = chkEnableUnsubscribe.Checked;
+ item.DisableListcommand = !chkEnableLists.Checked;
+ item.DisableWhichCommand = !chkEnableWhich.Checked;
+ item.DisableReviewCommand = !chkEnableReview.Checked;
+ item.DisableVacationCommand = !chkEnableVacation.Checked;
+ item.Moderated = chkModerated.Checked;
+ item.CommandPassword = txtCommandPassword.Text;
+ item.SuppressCommandResponses = chkSuppressCommandResponses.Checked;
+ }
+
+
+ protected void ddlMembersSource_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ MembersRow.Visible = (IceWarpListMembersSource) Enum.Parse(typeof (IceWarpListMembersSource), ddlMembersSource.SelectedValue) == IceWarpListMembersSource.MembersInFile;
+ }
+
+ protected void ddlFromHeaderAction_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ var setToValueChoosen = (IceWarpListFromAndReplyToHeader) Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlFromHeaderAction.SelectedValue) == IceWarpListFromAndReplyToHeader.SetToValue;
+ rowFromHeaderValue.Visible = setToValueChoosen;
+ //reqValFromHeaderValue.Enabled = setToValueChoosen;
+ }
+
+ protected void ddlReplyToHeaderAction_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ var setToValueChoosen = (IceWarpListFromAndReplyToHeader) Enum.Parse(typeof (IceWarpListFromAndReplyToHeader), ddlReplyToHeaderAction.SelectedValue) == IceWarpListFromAndReplyToHeader.SetToValue;
+ rowReplyToHeaderValue.Visible = setToValueChoosen;
+ //reqValReplyToHeaderValue.Enabled = setToValueChoosen;
+ }
+
+ protected void chkModerated_CheckedChanged(object sender, EventArgs e)
+ {
+ rowCommandPassword.Visible = chkModerated.Checked;
+ }
+
+ protected void ddlPasswordProtection_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ rowPostingPassword.Visible = ddlPasswordProtection.SelectedValue == "NoProtection";
+ }
+ }
+}
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx.designer.cs
new file mode 100644
index 00000000..18260bf4
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_EditList.ascx.designer.cs
@@ -0,0 +1,708 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WebsitePanel.Portal.ProviderControls {
+
+
+ public partial class IceWarp_EditList {
+
+ ///
+ /// MainPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel MainPanel;
+
+ ///
+ /// lblDescription control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDescription;
+
+ ///
+ /// txtDescription control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtDescription;
+
+ ///
+ /// lblModeratorAddress control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblModeratorAddress;
+
+ ///
+ /// ddlListModerators control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlListModerators;
+
+ ///
+ /// reqValModerator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator reqValModerator;
+
+ ///
+ /// MembersUpdatePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel MembersUpdatePanel;
+
+ ///
+ /// lblMembersSource control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMembersSource;
+
+ ///
+ /// ddlMembersSource control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlMembersSource;
+
+ ///
+ /// MembersRow control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow MembersRow;
+
+ ///
+ /// lblMembers control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMembers;
+
+ ///
+ /// mailEditItems control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.MailEditItems mailEditItems;
+
+ ///
+ /// Message control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CollapsiblePanel Message;
+
+ ///
+ /// MessagePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel MessagePanel;
+
+ ///
+ /// FromHeaderUpdatePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel FromHeaderUpdatePanel;
+
+ ///
+ /// lblFromHeader control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblFromHeader;
+
+ ///
+ /// ddlFromHeaderAction control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlFromHeaderAction;
+
+ ///
+ /// rowFromHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow rowFromHeaderValue;
+
+ ///
+ /// lblFromHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblFromHeaderValue;
+
+ ///
+ /// txtFromHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtFromHeaderValue;
+
+ ///
+ /// reqValFromHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator reqValFromHeaderValue;
+
+ ///
+ /// ReplyToHeaderUpdatePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel ReplyToHeaderUpdatePanel;
+
+ ///
+ /// lblReplyToHeader control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblReplyToHeader;
+
+ ///
+ /// ddlReplyToHeaderAction control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlReplyToHeaderAction;
+
+ ///
+ /// rowReplyToHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow rowReplyToHeaderValue;
+
+ ///
+ /// lblReplyToHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblReplyToHeaderValue;
+
+ ///
+ /// txtReplyToHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtReplyToHeaderValue;
+
+ ///
+ /// reqValReplyToHeaderValue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator reqValReplyToHeaderValue;
+
+ ///
+ /// chkSetRecipientToToHeader control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkSetRecipientToToHeader;
+
+ ///
+ /// lblSubjectPrefix control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblSubjectPrefix;
+
+ ///
+ /// txtSubjectPrefix control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtSubjectPrefix;
+
+ ///
+ /// lblOriginator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblOriginator;
+
+ ///
+ /// ddllblOriginator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddllblOriginator;
+
+ ///
+ /// Security control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CollapsiblePanel Security;
+
+ ///
+ /// SecurityPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel SecurityPanel;
+
+ ///
+ /// lblPostingMode control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPostingMode;
+
+ ///
+ /// ddlPostingMode control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlPostingMode;
+
+ ///
+ /// lblPasswordProtection control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPasswordProtection;
+
+ ///
+ /// ddlPasswordProtection control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlPasswordProtection;
+
+ ///
+ /// rowPostingPassword control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow rowPostingPassword;
+
+ ///
+ /// lblPostingPassword control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPostingPassword;
+
+ ///
+ /// txtPassword control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtPassword;
+
+ ///
+ /// ModeratedUpdatePanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.UpdatePanel ModeratedUpdatePanel;
+
+ ///
+ /// chkModerated control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkModerated;
+
+ ///
+ /// rowCommandPassword control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlTableRow rowCommandPassword;
+
+ ///
+ /// lblCommandPassword control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblCommandPassword;
+
+ ///
+ /// txtCommandPassword control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtCommandPassword;
+
+ ///
+ /// lblDefaultRights control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblDefaultRights;
+
+ ///
+ /// ddlDefaultRights control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlDefaultRights;
+
+ ///
+ /// lblMaxMessageSize control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMaxMessageSize;
+
+ ///
+ /// txtMaxMessageSize control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtMaxMessageSize;
+
+ ///
+ /// txtMaxMessageSizeValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtMaxMessageSizeValidator;
+
+ ///
+ /// txtMaxMessageSizeRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtMaxMessageSizeRequiredValidator;
+
+ ///
+ /// lblMaxMembers control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMaxMembers;
+
+ ///
+ /// txtMaxMembers control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtMaxMembers;
+
+ ///
+ /// txtMaxMembersValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtMaxMembersValidator;
+
+ ///
+ /// txtMaxMembersRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtMaxMembersRequiredValidator;
+
+ ///
+ /// Options control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.CollapsiblePanel Options;
+
+ ///
+ /// OptionsPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel OptionsPanel;
+
+ ///
+ /// chkSendToSender control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkSendToSender;
+
+ ///
+ /// chkDigestMailingList control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkDigestMailingList;
+
+ ///
+ /// lblMaxMessagesPerMinute control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMaxMessagesPerMinute;
+
+ ///
+ /// txtMaxMessagesPerMinute control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtMaxMessagesPerMinute;
+
+ ///
+ /// txtMaxMessagesPerMinuteValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RangeValidator txtMaxMessagesPerMinuteValidator;
+
+ ///
+ /// txtMaxMessagesPerMinuteRequiredValidator control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator txtMaxMessagesPerMinuteRequiredValidator;
+
+ ///
+ /// chkSendSubscribe control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkSendSubscribe;
+
+ ///
+ /// chkSendUnSubscribe control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkSendUnSubscribe;
+
+ ///
+ /// lblConfirmSubscription control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblConfirmSubscription;
+
+ ///
+ /// ddlConfirmSubscription control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlConfirmSubscription;
+
+ ///
+ /// chkCommandInSubject control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkCommandInSubject;
+
+ ///
+ /// chkEnableSubscribe control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkEnableSubscribe;
+
+ ///
+ /// chkEnableUnsubscribe control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkEnableUnsubscribe;
+
+ ///
+ /// chkEnableLists control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkEnableLists;
+
+ ///
+ /// chkEnableWhich control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkEnableWhich;
+
+ ///
+ /// chkEnableReview control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkEnableReview;
+
+ ///
+ /// chkEnableVacation control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkEnableVacation;
+
+ ///
+ /// chkSuppressCommandResponses control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkSuppressCommandResponses;
+ }
+}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx
new file mode 100644
index 00000000..d603cc96
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx
@@ -0,0 +1,61 @@
+<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IceWarp_Settings.ascx.cs" Inherits="WebsitePanel.Portal.ProviderControls.IceWarp_Settings" %>
+<%@ Register Src="../UserControls/SelectIPAddress.ascx" TagName="SelectIPAddress" TagPrefix="uc1" %>
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx.cs
new file mode 100644
index 00000000..9f5ca335
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx.cs
@@ -0,0 +1,71 @@
+// Copyright (c) 2014, Outercurve Foundation.
+// All rights reserved.
+//
+// Redistribution and use in source and binary forms, with or without modification,
+// are permitted provided that the following conditions are met:
+//
+// - Redistributions of source code must retain the above copyright notice, this
+// list of conditions and the following disclaimer.
+//
+// - Redistributions in binary form must reproduce the above copyright notice,
+// this list of conditions and the following disclaimer in the documentation
+// and/or other materials provided with the distribution.
+//
+// - Neither the name of the Outercurve Foundation nor the names of its
+// contributors may be used to endorse or promote products derived from this
+// software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
+// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+using System;
+using System.Data;
+using System.Configuration;
+using System.Collections;
+using System.Collections.Specialized;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Web.UI.HtmlControls;
+
+namespace WebsitePanel.Portal.ProviderControls
+{
+ public partial class IceWarp_Settings : WebsitePanelControlBase, IHostingServiceProviderSettings
+ {
+
+ public void BindSettings(StringDictionary settings)
+ {
+ ipAddress.AddressId = (settings["ServerIpAddress"] != null) ? Utils.ParseInt(settings["ServerIpAddress"], 0) : 0;
+ cbUseDomainDiskQuota.Checked = Convert.ToBoolean(settings["UseDomainDiskQuota"]);
+ cbUseDomainLimits.Checked = Convert.ToBoolean(settings["UseDomainLimits"]);
+ cbUseUserLimits.Checked = Convert.ToBoolean(settings["UseUserLimits"]);
+ cbOverrideGlobal.Checked = Convert.ToBoolean(settings["OverrideGlobal"]);
+ txtWarnMailboxUsage.Text = settings["WarnMailboxUsage"];
+ txtWarnDomainSize.Text = settings["WarnDomainSize"];
+ txtMaxMessageSizeInMB.Text = settings["MaxMessageSize"];
+ }
+
+ public void SaveSettings(StringDictionary settings)
+ {
+ settings["ServerIpAddress"] = ipAddress.AddressId.ToString();
+ settings["UseDomainDiskQuota"] = cbUseDomainDiskQuota.Checked.ToString();
+ settings["UseDomainLimits"] = cbUseDomainLimits.Checked.ToString();
+ settings["UseUserLimits"] = cbUseUserLimits.Checked.ToString();
+ settings["OverrideGlobal"] = cbOverrideGlobal.Checked.ToString();
+ settings["WarnMailboxUsage"] = txtWarnMailboxUsage.Text;
+ settings["WarnDomainSize"] = txtWarnDomainSize.Text;
+ settings["MaxMessageSize"] = txtMaxMessageSizeInMB.Text;
+ }
+ }
+}
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx.designer.cs
new file mode 100644
index 00000000..7348a746
--- /dev/null
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/IceWarp_Settings.ascx.designer.cs
@@ -0,0 +1,141 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace WebsitePanel.Portal.ProviderControls {
+
+
+ public partial class IceWarp_Settings {
+
+ ///
+ /// lblPublicIP control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblPublicIP;
+
+ ///
+ /// ipAddress control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::WebsitePanel.Portal.SelectIPAddress ipAddress;
+
+ ///
+ /// lblMaxMessageSizeInMB control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblMaxMessageSizeInMB;
+
+ ///
+ /// txtMaxMessageSizeInMB control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtMaxMessageSizeInMB;
+
+ ///
+ /// Label1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// cbUseDomainDiskQuota control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbUseDomainDiskQuota;
+
+ ///
+ /// cbUseDomainLimits control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbUseDomainLimits;
+
+ ///
+ /// cbUseUserLimits control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbUseUserLimits;
+
+ ///
+ /// cbOverrideGlobal control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox cbOverrideGlobal;
+
+ ///
+ /// lblWarnDomainSize control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWarnDomainSize;
+
+ ///
+ /// txtWarnDomainSize control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtWarnDomainSize;
+
+ ///
+ /// lblWarnMailboxUsage control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWarnMailboxUsage;
+
+ ///
+ /// txtWarnMailboxUsage control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox txtWarnMailboxUsage;
+
+ ///
+ /// RequiredFieldValidator1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
+ }
+}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditService.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditService.ascx.cs
index d018f2ef..5ef64502 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditService.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditService.ascx.cs
@@ -170,7 +170,8 @@ namespace WebsitePanel.Portal
(resourceGroup.GroupName == ResourceGroups.MsSql2000)|
(resourceGroup.GroupName == ResourceGroups.MsSql2005)|
(resourceGroup.GroupName == ResourceGroups.MsSql2008)|
- (resourceGroup.GroupName == ResourceGroups.MsSql2012)|
+ (resourceGroup.GroupName == ResourceGroups.MsSql2012) |
+ (resourceGroup.GroupName == ResourceGroups.MsSql2014) |
(resourceGroup.GroupName == ResourceGroups.MySql4)|
(resourceGroup.GroupName == ResourceGroups.MySql5)|
(resourceGroup.GroupName == ResourceGroups.Statistics)|
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SharePointEditSite.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SharePointEditSite.ascx.cs
index c683b4bf..b6d402c3 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SharePointEditSite.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SharePointEditSite.ascx.cs
@@ -70,6 +70,7 @@ namespace WebsitePanel.Portal
versions.Add(ResourceGroups.MsSql2005);
versions.Add(ResourceGroups.MsSql2008);
versions.Add(ResourceGroups.MsSql2012);
+ versions.Add(ResourceGroups.MsSql2014);
FillDatabaseVersions(PanelSecurity.PackageId, ddlDatabaseVersion.Items, versions);
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx
index 1b305fee..12cc5106 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx
@@ -3,8 +3,7 @@
Sign In
-
- My Account
- |
+ My Account
+ |
+
\ No newline at end of file
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.cs
index 1c9a3d6d..c99c8237 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.cs
@@ -38,6 +38,7 @@ using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WebsitePanel.EnterpriseServer;
+using WebsitePanel.WebPortal;
namespace WebsitePanel.Portal.SkinControls
{
@@ -56,7 +57,7 @@ namespace WebsitePanel.Portal.SkinControls
UserInfo user = PanelSecurity.LoggedUser;
if (user != null)
{
- litUsername.Text = PanelSecurity.LoggedUser.Username;
+ lnkEditUserDetails.Text = PanelSecurity.LoggedUser.Username;
lnkEditUserDetails.NavigateUrl = PortalUtils.GetLoggedUserAccountPageUrl();
}
@@ -64,6 +65,10 @@ namespace WebsitePanel.Portal.SkinControls
LoggedPanel.Visible = Request.IsAuthenticated;
lnkSignIn.NavigateUrl = PortalUtils.LoginRedirectUrl;
+
+ string imagePath = String.Concat("~/", DefaultPage.THEMES_FOLDER, "/", Page.Theme, "/", "Images", "/");
+
+ imgSignOut.ImageUrl = imagePath + "signout_24.png";
}
protected void cmdSignOut_Click(object sender, EventArgs e)
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.designer.cs
index 6034d612..cad1d36b 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.designer.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/SignedInUser.ascx.designer.cs
@@ -1,21 +1,60 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:2.0.50727.42
//
// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
+// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace WebsitePanel.Portal.SkinControls {
+
public partial class SignedInUser {
- protected System.Web.UI.WebControls.Panel AnonymousPanel;
- protected System.Web.UI.WebControls.HyperLink lnkSignIn;
- protected System.Web.UI.WebControls.Panel LoggedPanel;
- protected System.Web.UI.WebControls.Literal litUsername;
- protected System.Web.UI.WebControls.HyperLink lnkEditUserDetails;
- protected System.Web.UI.WebControls.LinkButton cmdSignOut;
+
+ ///
+ /// AnonymousPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel AnonymousPanel;
+
+ ///
+ /// lnkSignIn control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HyperLink lnkSignIn;
+
+ ///
+ /// LoggedPanel control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Panel LoggedPanel;
+
+ ///
+ /// lnkEditUserDetails control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HyperLink lnkEditUserDetails;
+
+ ///
+ /// imgSignOut control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ImageButton imgSignOut;
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/TopMenu.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/TopMenu.ascx.cs
index 937b3bc3..69934b78 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/TopMenu.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/TopMenu.ascx.cs
@@ -36,6 +36,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
+using WebsitePanel.WebPortal;
namespace WebsitePanel.Portal.SkinControls
{
@@ -69,6 +70,15 @@ namespace WebsitePanel.Portal.SkinControls
return;
}
+ if (Align.Equals("left") && node.Title.ToLower().Equals("account home"))
+ {
+ e.Item.Text = string.Empty;
+
+ string imagePath = String.Concat("~/", DefaultPage.THEMES_FOLDER, "/", Page.Theme, "/", "Images", "/");
+
+ e.Item.ImageUrl = imagePath + "home_24.png";
+ }
+
string target = node["target"];
if(!String.IsNullOrEmpty(target))
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx
index 3f25e61d..7d6b12a4 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx
@@ -35,6 +35,7 @@
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.cs
index 1849cf0e..0e391268 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.cs
@@ -93,6 +93,12 @@ namespace WebsitePanel.Portal.SkinControls
cmdSpaceName.Text = PortalAntiXSS.EncodeOld(package.PackageName);
lblSpaceDescription.Text = PortalAntiXSS.EncodeOld(package.PackageComments);
+ UserInfo user = UsersHelper.GetUser(PanelSecurity.SelectedUserId);
+ if (user != null)
+ {
+ lblUserAccountName.Text = PortalAntiXSS.EncodeOld(string.Format("{0} -",user.Username));
+ }
+
lnkCurrentPage.NavigateUrl = PortalUtils.NavigatePageURL(
PortalUtils.GetCurrentPageId(), "SpaceID", PanelSecurity.PackageId.ToString());
}
@@ -154,7 +160,16 @@ namespace WebsitePanel.Portal.SkinControls
HyperLink lnkUser = (HyperLink)e.Item.FindControl("lnkUser");
if (lnkUser != null)
{
- lnkUser.Text = user.Username;
+ if (user.UserId == PanelSecurity.SelectedUserId && PanelSecurity.SelectedUserId != PanelSecurity.LoggedUserId)
+ {
+ string imagePath = String.Concat("~/", DefaultPage.THEMES_FOLDER, "/", Page.Theme, "/", "Images", "/");
+
+ lnkUser.ImageUrl = imagePath + "home_16_blk.png";
+ }
+ else
+ {
+ lnkUser.Text = user.Username;
+ }
lnkUser.NavigateUrl = PortalUtils.GetUserHomePageUrl(user.UserId);
}
}
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.designer.cs
index e61a07dd..efeb876b 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.designer.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/UserSpaceBreadcrumb.ascx.designer.cs
@@ -174,6 +174,15 @@ namespace WebsitePanel.Portal.SkinControls {
///
protected global::System.Web.UI.WebControls.Panel pnlViewSpace;
+ ///
+ /// lblUserAccountName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblUserAccountName;
+
///
/// cmdSpaceName control.
///
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx
index 97281335..de03cce4 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx
@@ -6,7 +6,7 @@
<%@ Import Namespace="WebsitePanel.Portal" %>
-
+
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebApplicationGalleryParams.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebApplicationGalleryParams.ascx.cs
index 9c40f697..f4a7f6c1 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebApplicationGalleryParams.ascx.cs
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebApplicationGalleryParams.ascx.cs
@@ -161,6 +161,8 @@ namespace WebsitePanel.Portal
PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId);
// add SQL Server engines
+ if (cntx.Groups.ContainsKey(ResourceGroups.MsSql2014))
+ AddDatabaseEngine(DeploymentParameterWellKnownTag.Sql, ResourceGroups.MsSql2014, GetSharedLocalizedString("ResourceGroup." + ResourceGroups.MsSql2014));
if (cntx.Groups.ContainsKey(ResourceGroups.MsSql2012))
AddDatabaseEngine(DeploymentParameterWellKnownTag.Sql, ResourceGroups.MsSql2012, GetSharedLocalizedString("ResourceGroup." + ResourceGroups.MsSql2012));
if (cntx.Groups.ContainsKey(ResourceGroups.MsSql2008))
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj
index 60e9bcef..3097e2bc 100644
--- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj
+++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj
@@ -539,6 +539,48 @@
hMailServer5_Settings.ascx
+
+ IceWarp_EditAccount.ascx
+ ASPXCodeBehind
+
+
+ IceWarp_EditAccount.ascx
+
+
+ IceWarp_EditDomain.ascx
+ ASPXCodeBehind
+
+
+ IceWarp_EditDomain.ascx
+
+
+ IceWarp_EditForwarding.ascx
+ ASPXCodeBehind
+
+
+ IceWarp_EditForwarding.ascx
+
+
+ IceWarp_EditGroup.ascx
+ ASPXCodeBehind
+
+
+ IceWarp_EditGroup.ascx
+
+
+ IceWarp_EditList.ascx
+ ASPXCodeBehind
+
+
+ IceWarp_EditList.ascx
+
+
+ IceWarp_Settings.ascx
+ ASPXCodeBehind
+
+
+ IceWarp_Settings.ascx
+
Lync_Settings.ascx
ASPXCodeBehind
@@ -4125,6 +4167,12 @@
+
+
+
+
+
+
@@ -5368,6 +5416,11 @@
Designer
+
+
+
+
+
Designer