Commit changes from Robdve
This commit is contained in:
commit
3b81883a25
6 changed files with 169 additions and 3 deletions
|
@ -44770,6 +44770,11 @@ CREATE PROCEDURE [dbo].[AddExchangeMailboxPlan]
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
|
|
||||||
|
IF ((SELECT Count(*) FROM ExchangeMailboxPlans WHERE ItemId = @ItemID) = 0)
|
||||||
|
BEGIN
|
||||||
|
SET @IsDefault = 1
|
||||||
|
END
|
||||||
|
|
||||||
INSERT INTO ExchangeMailboxPlans
|
INSERT INTO ExchangeMailboxPlans
|
||||||
(
|
(
|
||||||
ItemID,
|
ItemID,
|
||||||
|
@ -45038,6 +45043,12 @@ CREATE PROCEDURE [dbo].[AddLyncUserPlan]
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
|
|
||||||
|
IF ((SELECT Count(*) FROM LyncUserPlans WHERE ItemId = @ItemID) = 0)
|
||||||
|
BEGIN
|
||||||
|
SET @IsDefault = 1
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
INSERT INTO LyncUserPlans
|
INSERT INTO LyncUserPlans
|
||||||
(
|
(
|
||||||
ItemID,
|
ItemID,
|
||||||
|
|
|
@ -1931,6 +1931,11 @@ CREATE PROCEDURE [dbo].[AddExchangeMailboxPlan]
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
|
|
||||||
|
IF ((SELECT Count(*) FROM ExchangeMailboxPlans WHERE ItemId = @ItemID) = 0)
|
||||||
|
BEGIN
|
||||||
|
SET @IsDefault = 1
|
||||||
|
END
|
||||||
|
|
||||||
INSERT INTO ExchangeMailboxPlans
|
INSERT INTO ExchangeMailboxPlans
|
||||||
(
|
(
|
||||||
ItemID,
|
ItemID,
|
||||||
|
@ -1983,6 +1988,83 @@ GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ALTER PROCEDURE [dbo].[AddExchangeMailboxPlan]
|
||||||
|
(
|
||||||
|
@MailboxPlanId int OUTPUT,
|
||||||
|
@ItemID int,
|
||||||
|
@MailboxPlan nvarchar(300),
|
||||||
|
@EnableActiveSync bit,
|
||||||
|
@EnableIMAP bit,
|
||||||
|
@EnableMAPI bit,
|
||||||
|
@EnableOWA bit,
|
||||||
|
@EnablePOP bit,
|
||||||
|
@IsDefault bit,
|
||||||
|
@IssueWarningPct int,
|
||||||
|
@KeepDeletedItemsDays int,
|
||||||
|
@MailboxSizeMB int,
|
||||||
|
@MaxReceiveMessageSizeKB int,
|
||||||
|
@MaxRecipients int,
|
||||||
|
@MaxSendMessageSizeKB int,
|
||||||
|
@ProhibitSendPct int,
|
||||||
|
@ProhibitSendReceivePct int ,
|
||||||
|
@HideFromAddressBook bit
|
||||||
|
)
|
||||||
|
AS
|
||||||
|
|
||||||
|
IF ((SELECT Count(*) FROM ExchangeMailboxPlans WHERE ItemId = @ItemID) = 0)
|
||||||
|
BEGIN
|
||||||
|
SET @IsDefault = 1
|
||||||
|
END
|
||||||
|
|
||||||
|
INSERT INTO ExchangeMailboxPlans
|
||||||
|
(
|
||||||
|
ItemID,
|
||||||
|
MailboxPlan,
|
||||||
|
EnableActiveSync,
|
||||||
|
EnableIMAP,
|
||||||
|
EnableMAPI,
|
||||||
|
EnableOWA,
|
||||||
|
EnablePOP,
|
||||||
|
IsDefault,
|
||||||
|
IssueWarningPct,
|
||||||
|
KeepDeletedItemsDays,
|
||||||
|
MailboxSizeMB,
|
||||||
|
MaxReceiveMessageSizeKB,
|
||||||
|
MaxRecipients,
|
||||||
|
MaxSendMessageSizeKB,
|
||||||
|
ProhibitSendPct,
|
||||||
|
ProhibitSendReceivePct,
|
||||||
|
HideFromAddressBook
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
@ItemID,
|
||||||
|
@MailboxPlan,
|
||||||
|
@EnableActiveSync,
|
||||||
|
@EnableIMAP,
|
||||||
|
@EnableMAPI,
|
||||||
|
@EnableOWA,
|
||||||
|
@EnablePOP,
|
||||||
|
@IsDefault,
|
||||||
|
@IssueWarningPct,
|
||||||
|
@KeepDeletedItemsDays,
|
||||||
|
@MailboxSizeMB,
|
||||||
|
@MaxReceiveMessageSizeKB,
|
||||||
|
@MaxRecipients,
|
||||||
|
@MaxSendMessageSizeKB,
|
||||||
|
@ProhibitSendPct,
|
||||||
|
@ProhibitSendReceivePct,
|
||||||
|
@HideFromAddressBook
|
||||||
|
)
|
||||||
|
|
||||||
|
SET @MailboxPlanId = SCOPE_IDENTITY()
|
||||||
|
|
||||||
|
RETURN
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -3112,6 +3194,11 @@ EXEC sp_executesql N'CREATE PROCEDURE [dbo].[AddLyncUserPlan]
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
|
|
||||||
|
IF ((SELECT Count(*) FROM LyncUserPlans WHERE ItemId = @ItemID) = 0)
|
||||||
|
BEGIN
|
||||||
|
SET @IsDefault = 1
|
||||||
|
END
|
||||||
|
|
||||||
INSERT INTO LyncUserPlans
|
INSERT INTO LyncUserPlans
|
||||||
(
|
(
|
||||||
ItemID,
|
ItemID,
|
||||||
|
@ -3147,6 +3234,62 @@ GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ALTER PROCEDURE [dbo].[AddLyncUserPlan]
|
||||||
|
(
|
||||||
|
@LyncUserPlanId int OUTPUT,
|
||||||
|
@ItemID int,
|
||||||
|
@LyncUserPlanName nvarchar(300),
|
||||||
|
@IM bit,
|
||||||
|
@Mobility bit,
|
||||||
|
@MobilityEnableOutsideVoice bit,
|
||||||
|
@Federation bit,
|
||||||
|
@Conferencing bit,
|
||||||
|
@EnterpriseVoice bit,
|
||||||
|
@VoicePolicy int,
|
||||||
|
@IsDefault bit
|
||||||
|
)
|
||||||
|
AS
|
||||||
|
|
||||||
|
IF ((SELECT Count(*) FROM LyncUserPlans WHERE ItemId = @ItemID) = 0)
|
||||||
|
BEGIN
|
||||||
|
SET @IsDefault = 1
|
||||||
|
END
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO LyncUserPlans
|
||||||
|
(
|
||||||
|
ItemID,
|
||||||
|
LyncUserPlanName,
|
||||||
|
IM,
|
||||||
|
Mobility,
|
||||||
|
MobilityEnableOutsideVoice,
|
||||||
|
Federation,
|
||||||
|
Conferencing,
|
||||||
|
EnterpriseVoice,
|
||||||
|
VoicePolicy,
|
||||||
|
IsDefault
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
@ItemID,
|
||||||
|
@LyncUserPlanName,
|
||||||
|
@IM,
|
||||||
|
@Mobility,
|
||||||
|
@MobilityEnableOutsideVoice,
|
||||||
|
@Federation,
|
||||||
|
@Conferencing,
|
||||||
|
@EnterpriseVoice,
|
||||||
|
@VoicePolicy,
|
||||||
|
@IsDefault
|
||||||
|
)
|
||||||
|
|
||||||
|
SET @LyncUserPlanId = SCOPE_IDENTITY()
|
||||||
|
|
||||||
|
RETURN
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
IF NOT EXISTS (SELECT * FROM sys.objects WHERE type_desc = N'SQL_STORED_PROCEDURE' AND name = N'CheckLyncUserExists')
|
IF NOT EXISTS (SELECT * FROM sys.objects WHERE type_desc = N'SQL_STORED_PROCEDURE' AND name = N'CheckLyncUserExists')
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
|
@ -2697,6 +2697,9 @@
|
||||||
<data name="AuditLogTask.EXCHANGE_DELETE_MAILBOX" xml:space="preserve">
|
<data name="AuditLogTask.EXCHANGE_DELETE_MAILBOX" xml:space="preserve">
|
||||||
<value>Delete mailbox</value>
|
<value>Delete mailbox</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="AuditLogTask.EXCHANGE_DELETE_MAILBOXPLAN" xml:space="preserve">
|
||||||
|
<value>Delete mailboxplan</value>
|
||||||
|
</data>
|
||||||
<data name="AuditLogTask.EXCHANGE_DELETE_MAILBOX_ADDRESSES" xml:space="preserve">
|
<data name="AuditLogTask.EXCHANGE_DELETE_MAILBOX_ADDRESSES" xml:space="preserve">
|
||||||
<value>Delete mailbox e-mail addresses</value>
|
<value>Delete mailbox e-mail addresses</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -2889,6 +2892,9 @@
|
||||||
<data name="Error.EXCHANGE_DELETE_MAILBOX" xml:space="preserve">
|
<data name="Error.EXCHANGE_DELETE_MAILBOX" xml:space="preserve">
|
||||||
<value>Error deleting mailbox. See audit log for more details.</value>
|
<value>Error deleting mailbox. See audit log for more details.</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Error.EXCHANGE_DELETE_MAILBOXPLAN" xml:space="preserve">
|
||||||
|
<value>Unable to delete mailboxplan. Make sure the mailbox plan is not assigned to any mailbox</value>
|
||||||
|
</data>
|
||||||
<data name="Error.EXCHANGE_DELETE_ORG" xml:space="preserve">
|
<data name="Error.EXCHANGE_DELETE_ORG" xml:space="preserve">
|
||||||
<value>Error deleting Exchange organization. See audit log for more details.</value>
|
<value>Error deleting Exchange organization. See audit log for more details.</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
|
@ -72,6 +72,8 @@ namespace WebsitePanel.WebPortal
|
||||||
{
|
{
|
||||||
FormsAuthentication.SignOut();
|
FormsAuthentication.SignOut();
|
||||||
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"]));
|
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"]));
|
||||||
|
cookie.Value = GetSessionIDMac(cookie.Value, request.UserHostAddress, request.UserAgent, _ValidationKey);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Separate the session ID and the MAC
|
// Separate the session ID and the MAC
|
||||||
|
@ -87,6 +89,8 @@ namespace WebsitePanel.WebPortal
|
||||||
{
|
{
|
||||||
FormsAuthentication.SignOut();
|
FormsAuthentication.SignOut();
|
||||||
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"]));
|
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"]));
|
||||||
|
cookie.Value = GetSessionIDMac(cookie.Value, request.UserHostAddress, request.UserAgent, _ValidationKey);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Strip the MAC from the cookie before ASP.NET sees it
|
// Strip the MAC from the cookie before ASP.NET sees it
|
||||||
|
|
|
@ -35,7 +35,6 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls
|
||||||
{
|
{
|
||||||
|
|
||||||
private string mailboxPlanToSelect;
|
private string mailboxPlanToSelect;
|
||||||
private bool addNone;
|
|
||||||
|
|
||||||
public string MailboxPlanId
|
public string MailboxPlanId
|
||||||
{
|
{
|
||||||
|
|
|
@ -97,8 +97,11 @@ namespace WebsitePanel.Portal
|
||||||
lnkChangePassword.Visible = !((PanelSecurity.SelectedUserId == PanelSecurity.EffectiveUserId) && PanelSecurity.LoggedUser.IsPeer);
|
lnkChangePassword.Visible = !((PanelSecurity.SelectedUserId == PanelSecurity.EffectiveUserId) && PanelSecurity.LoggedUser.IsPeer);
|
||||||
|
|
||||||
lnkDelete.NavigateUrl = EditUrl("UserID", PanelSecurity.SelectedUserId.ToString(), "delete");
|
lnkDelete.NavigateUrl = EditUrl("UserID", PanelSecurity.SelectedUserId.ToString(), "delete");
|
||||||
if ((PanelSecurity.LoggedUser.Role != UserRole.Reseller) | (PanelSecurity.LoggedUser.Role != UserRole.Administrator)) lnkDelete.Visible = false;
|
|
||||||
else lnkDelete.Visible = (PanelSecurity.SelectedUserId != PanelSecurity.EffectiveUserId);
|
if (!((PanelSecurity.LoggedUser.Role == UserRole.Reseller) | (PanelSecurity.LoggedUser.Role == UserRole.Administrator)))
|
||||||
|
lnkDelete.Visible = false;
|
||||||
|
else
|
||||||
|
lnkDelete.Visible = (PanelSecurity.SelectedUserId != PanelSecurity.EffectiveUserId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue