Merge commit
This commit is contained in:
commit
e2c94261c6
4 changed files with 105 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
USE [${install.database}]
|
USE [${install.database}]
|
||||||
GO
|
GO
|
||||||
|
|
||||||
-- update database version
|
-- update database version
|
||||||
|
@ -7003,4 +7003,103 @@ IF NOT EXISTS (SELECT 1 FROM LyncUsers WHERE SipAddress IS NOT NULL)
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE LyncUsers SET SipAddress=EA.PrimaryEmailAddress FROM ExchangeAccounts AS EA WHERE LyncUsers.SipAddress IS NULL AND LyncUsers.AccountID = EA.AccountID
|
UPDATE LyncUsers SET SipAddress=EA.PrimaryEmailAddress FROM ExchangeAccounts AS EA WHERE LyncUsers.SipAddress IS NULL AND LyncUsers.AccountID = EA.AccountID
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
ALTER PROCEDURE [dbo].[GetPackageQuotas]
|
||||||
|
(
|
||||||
|
@ActorID int,
|
||||||
|
@PackageID int
|
||||||
|
)
|
||||||
|
AS
|
||||||
|
|
||||||
|
-- check rights
|
||||||
|
IF dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0
|
||||||
|
RAISERROR('You are not allowed to access this package', 16, 1)
|
||||||
|
|
||||||
|
DECLARE @PlanID int, @ParentPackageID int
|
||||||
|
SELECT @PlanID = PlanID, @ParentPackageID = ParentPackageID FROM Packages
|
||||||
|
WHERE PackageID = @PackageID
|
||||||
|
|
||||||
|
-- get resource groups
|
||||||
|
SELECT
|
||||||
|
RG.GroupID,
|
||||||
|
RG.GroupName,
|
||||||
|
ISNULL(HPR.CalculateDiskSpace, 0) AS CalculateDiskSpace,
|
||||||
|
ISNULL(HPR.CalculateBandwidth, 0) AS CalculateBandwidth,
|
||||||
|
dbo.GetPackageAllocatedResource(@ParentPackageID, RG.GroupID, 0) AS ParentEnabled
|
||||||
|
FROM ResourceGroups AS RG
|
||||||
|
LEFT OUTER JOIN HostingPlanResources AS HPR ON RG.GroupID = HPR.GroupID AND HPR.PlanID = @PlanID
|
||||||
|
WHERE dbo.GetPackageAllocatedResource(@PackageID, RG.GroupID, 0) = 1
|
||||||
|
ORDER BY RG.GroupOrder
|
||||||
|
|
||||||
|
|
||||||
|
-- return quotas
|
||||||
|
SELECT
|
||||||
|
Q.QuotaID,
|
||||||
|
Q.GroupID,
|
||||||
|
Q.QuotaName,
|
||||||
|
Q.QuotaDescription,
|
||||||
|
Q.QuotaTypeID,
|
||||||
|
dbo.GetPackageAllocatedQuota(@PackageID, Q.QuotaID) AS QuotaValue,
|
||||||
|
dbo.GetPackageAllocatedQuota(@ParentPackageID, Q.QuotaID) AS ParentQuotaValue,
|
||||||
|
ISNULL(dbo.CalculateQuotaUsage(@PackageID, Q.QuotaID), 0) AS QuotaUsedValue
|
||||||
|
FROM Quotas AS Q
|
||||||
|
WHERE Q.HideQuota IS NULL OR Q.HideQuota = 0
|
||||||
|
ORDER BY Q.QuotaOrder
|
||||||
|
RETURN
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ALTER PROCEDURE [dbo].[UpdateServiceProperties]
|
||||||
|
(
|
||||||
|
@ServiceID int,
|
||||||
|
@Xml ntext
|
||||||
|
)
|
||||||
|
AS
|
||||||
|
|
||||||
|
-- delete old properties
|
||||||
|
BEGIN TRAN
|
||||||
|
DECLARE @idoc int
|
||||||
|
--Create an internal representation of the XML document.
|
||||||
|
EXEC sp_xml_preparedocument @idoc OUTPUT, @xml
|
||||||
|
|
||||||
|
-- Execute a SELECT statement that uses the OPENXML rowset provider.
|
||||||
|
DELETE FROM ServiceProperties
|
||||||
|
WHERE ServiceID = @ServiceID
|
||||||
|
AND PropertyName COLLATE Latin1_General_CI_AS IN
|
||||||
|
(
|
||||||
|
SELECT PropertyName
|
||||||
|
FROM OPENXML(@idoc, '/properties/property', 1)
|
||||||
|
WITH (PropertyName nvarchar(50) '@name')
|
||||||
|
)
|
||||||
|
|
||||||
|
INSERT INTO ServiceProperties
|
||||||
|
(
|
||||||
|
ServiceID,
|
||||||
|
PropertyName,
|
||||||
|
PropertyValue
|
||||||
|
)
|
||||||
|
SELECT
|
||||||
|
@ServiceID,
|
||||||
|
PropertyName,
|
||||||
|
PropertyValue
|
||||||
|
FROM OPENXML(@idoc, '/properties/property',1) WITH
|
||||||
|
(
|
||||||
|
PropertyName nvarchar(50) '@name',
|
||||||
|
PropertyValue nvarchar(1000) '@value'
|
||||||
|
) as PV
|
||||||
|
|
||||||
|
-- remove document
|
||||||
|
exec sp_xml_removedocument @idoc
|
||||||
|
|
||||||
|
COMMIT TRAN
|
||||||
|
RETURN
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
</configSections>
|
</configSections>
|
||||||
<!-- Connection strings -->
|
<!-- Connection strings -->
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="EnterpriseServer" connectionString="server=HSTPROV01;database=WebsitePanelMerge;uid=WebsitePanel;pwd=aj7ep6fyhmw3b5qeth7c;" />
|
<add name="EnterpriseServer" connectionString="Server=(local)\SQLExpress;Database=WebsitePanel;uid=sa;pwd=Password12" providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!-- Encryption util settings -->
|
<!-- Encryption util settings -->
|
||||||
<add key="WebsitePanel.CryptoKey" value="3x7eqt7zabc5n5afs6dg" />
|
<add key="WebsitePanel.CryptoKey" value="1234567890" />
|
||||||
<!-- A1D4KDHUE83NKHddF -->
|
<!-- A1D4KDHUE83NKHddF -->
|
||||||
<add key="WebsitePanel.EncryptionEnabled" value="true" />
|
<add key="WebsitePanel.EncryptionEnabled" value="true" />
|
||||||
<!-- Web Applications -->
|
<!-- Web Applications -->
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- Display Settings -->
|
<!-- Display Settings -->
|
||||||
<PortalName>WebsitePanel</PortalName>
|
<PortalName>WebsitePanel</PortalName>
|
||||||
<!-- Enterprise Server -->
|
<!-- Enterprise Server -->
|
||||||
<EnterpriseServer>http://localhost:9005</EnterpriseServer>
|
<EnterpriseServer>http://localhost:9002</EnterpriseServer>
|
||||||
<!-- General Settings -->
|
<!-- General Settings -->
|
||||||
<CultureCookieName>UserCulture</CultureCookieName>
|
<CultureCookieName>UserCulture</CultureCookieName>
|
||||||
<ThemeCookieName>UserTheme</ThemeCookieName>
|
<ThemeCookieName>UserTheme</ThemeCookieName>
|
||||||
|
|
|
@ -224,9 +224,7 @@
|
||||||
<Content Include="App_Data\ModulesData.config">
|
<Content Include="App_Data\ModulesData.config">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="App_Data\SiteSettings.config">
|
<Content Include="App_Data\SiteSettings.config" />
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</Content>
|
|
||||||
<None Include="App_Data\SupportedThemes.config" />
|
<None Include="App_Data\SupportedThemes.config" />
|
||||||
<None Include="App_Data\Countries.config" />
|
<None Include="App_Data\Countries.config" />
|
||||||
<None Include="App_Data\CountryStates.config" />
|
<None Include="App_Data\CountryStates.config" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue