Added SmarterStats 7+ functionality
This commit is contained in:
parent
c7edb096f3
commit
bdaa439965
2 changed files with 21 additions and 5 deletions
|
@ -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