From: eldy <>
Date: Sat, 29 Dec 2012 15:27:22 +0000 (+0000)
Subject: Fix: Add windows 8 detection
X-Git-Tag: AWSTATS_7_2~23
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=448a09103d2482f9542335b4e608259c227adf93;p=thirdparty%2FAWStats.git
Fix: Add windows 8 detection
---
diff --git a/wwwroot/cgi-bin/lib/operating_systems.pm b/wwwroot/cgi-bin/lib/operating_systems.pm
index 6d268ca8..b97f122c 100644
--- a/wwwroot/cgi-bin/lib/operating_systems.pm
+++ b/wwwroot/cgi-bin/lib/operating_systems.pm
@@ -31,6 +31,7 @@
# Windows OS family
'windows[_+ ]?2005', 'windows[_+ ]nt[_+ ]6\.0',
'windows[_+ ]?2008', 'windows[_+ ]nt[_+ ]6\.1', # Must be before windows_nt_6
+'windows[_+ ]?2012', 'windows[_+ ]nt[_+ ]6\.2', # Must be before windows_nt_6
'windows[_+ ]?vista', 'windows[_+ ]nt[_+ ]6',
'windows[_+ ]?2003','windows[_+ ]nt[_+ ]5\.2', # Must be before windows_nt_5
'windows[_+ ]xp','windows[_+ ]nt[_+ ]5\.1', # Must be before windows_nt_5
@@ -135,6 +136,7 @@
# Windows OS family
'windows[_+ ]?2005','winlong','windows[_+ ]nt[_+ ]6\.0','winlong',
'windows[_+ ]?2008','win2008','windows[_+ ]nt[_+ ]6\.1','win7',
+'windows[_+ ]?2012','win2012','windows[_+ ]nt[_+ ]6\.2','win8',
'windows[_+ ]?vista','winvista','windows[_+ ]nt[_+ ]6','winvista',
'windows[_+ ]?2003','win2003','windows[_+ ]nt[_+ ]5\.2','win2003',
'windows[_+ ]xp','winxp','windows[_+ ]nt[_+ ]5\.1','winxp', 'syndirella', 'winxp',
@@ -227,9 +229,11 @@
#-----------------------------------------------------------
%OSHashLib = (
# Windows family OS
-'win7','Windows 7',
+'win8','Windows 8',
+'win7','Windows 7',
'winlong','Windows Vista (LongHorn)',
'win2008','Windows 2008',
+'win2012','Windows Server 2012',
'winvista','Windows Vista',
'win2003','Windows 2003',
'winxp','Windows XP',