Added SmarterStats 7+ functionality
This commit is contained in:
parent
c7edb096f3
commit
bdaa439965
2 changed files with 21 additions and 5 deletions
|
@ -4772,3 +4772,12 @@ RETURN
|
|||
|
||||
GO
|
||||
|
||||
|
||||
IF EXISTS (SELECT * FROM [dbo].[Providers] WHERE [DisplayName] = 'SmarterStats 5.x-6.x')
|
||||
BEGIN
|
||||
UPDATE [dbo].[Providers]
|
||||
SET [DisplayName] = 'SmarterStats 5.x +'
|
||||
WHERE [DisplayName] = 'SmarterStats 5.x-6.x'
|
||||
END
|
||||
GO
|
||||
|
||||
|
|
|
@ -102,11 +102,18 @@ namespace WebsitePanel.Providers.Statistics
|
|||
//
|
||||
if (String.IsNullOrEmpty(productVersion))
|
||||
return false;
|
||||
// Match SmarterStats either 5.x or 6.x version
|
||||
if (productVersion.StartsWith("5.")
|
||||
|| productVersion.StartsWith("6."))
|
||||
return true;
|
||||
//
|
||||
|
||||
// Match SmarterStats 5.x or newer versions
|
||||
int version = 0;
|
||||
string[] split = productVersion.Split(new[] { '.' });
|
||||
|
||||
if (int.TryParse(split[0], out version))
|
||||
{
|
||||
if(version >= 5)
|
||||
return true;
|
||||
}
|
||||
//
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue