← Index
Performance Profile   « block view • line view • sub view »
For ./awstats.pl
  Run on Wed Feb 11 19:11:27 2009
Reported on Thu Feb 12 02:07:45 2009

Filelib/operating_systems.pm
Statements Executed4
Total Time0.000192 seconds


LineStmts.Exclusive
Time
Avg.Code
1# AWSTATS OPERATING SYSTEMS DATABASE
2#-------------------------------------------------------
3# If you want to add an OS to extend AWStats database detection capabilities,
4# you must add an entry in OSSearchIDOrder, in OSHashID and in OSHashLib.
5#-------------------------------------------------------
6# $Revision: 1.21 $ - $Author: eldy $ - $Date: 2007/04/02 18:30:53 $
7
8# 2005-08-19 Sean Carlos http://www.antezeta.com/awstats.html
9# - added specific Linux distributions in addition to
10# the generic Linux.
11# Included documentation link to Distribution home pages.
12# - added links for each operating systems.
13
14#package AWSOS;
15
16
17# OSSearchIDOrder
18# This list is used to know in which order to search Operating System IDs
19# (Most frequent one are first in this list to increase detect speed).
20# It contains all matching criteria to search for in log fields.
21# Note: OS IDs are in lower case and ' ' and '+' are changed into '_'
22#-------------------------------------------------------------------------
2312.6e-52.6e-5@OSSearchIDOrder = (
24# Windows OS family
25'windows[_+ ]?2005', 'windows[_+ ]nt[_+ ]6\.0',
26'windows[_+ ]?2003','windows[_+ ]nt[_+ ]5\.2', # Must be before windows_nt_5
27'windows[_+ ]xp','windows[_+ ]nt[_+ ]5\.1', # Must be before windows_nt_5
28'windows[_+ ]me','win[_+ ]9x', # Must be before windows_98
29'windows[_+ ]?2000','windows[_+ ]nt[_+ ]5',
30'winnt','windows[_+ \-]?nt','win32',
31'win(.*)98',
32'win(.*)95',
33'win(.*)16','windows[_+ ]3', # This works for windows_31 and windows_3.1
34'win(.*)ce',
35# Macintosh OS family
36'mac[_+ ]os[_+ ]x',
37'mac[_+ ]?p', # This works for macppc and mac_ppc and mac_powerpc
38'mac[_+ ]68', # This works for mac_6800 and mac_68k
39'macweb',
40'macintosh',
41# Linux family
42'linux(.*)centos',
43'linux(.*)debian',
44'linux(.*)fedora',
45'linux(.*)mandr',
46'linux(.*)red[_+ ]hat',
47'linux(.*)suse',
48'linux(.*)ubuntu',
49'linux',
50# Hurd family
51'gnu.hurd',
52# BSDs family
53'bsdi',
54'gnu.kfreebsd', # Must be before freebsd
55'freebsd',
56'openbsd',
57'netbsd',
58# Other Unix, Unix-like
59'aix',
60'sunos',
61'irix',
62'osf',
63'hp\-ux',
64'unix',
65'x11',
66'gnome\-vfs',
67# Other famous OS
68'beos',
69'os/2',
70'amiga',
71'atari',
72'vms',
73'commodore',
74# Miscellanous OS
75'cp/m',
76'crayos',
77'dreamcast',
78'risc[_+ ]?os',
79'symbian',
80'webtv',
81'playstation[_+ ]portable',
82'xbox',
83'vienna',
84'newsfire',
85'applesyndication',
86'akregator',
87'plagger',
88'syndirella'
89);
90
91
92# OSHashID
93# Each OS Search ID is associated to a string that is the AWStats id and
94# also the name of icon file for this OS.
95#--------------------------------------------------------------------------
9616.9e-56.9e-5%OSHashID = (
97# Windows OS family
98'windows[_+ ]?2005','winlong','windows[_+ ]nt[_+ ]6\.0','winlong',
99'windows[_+ ]?2003','win2003','windows[_+ ]nt[_+ ]5\.2','win2003',
100'windows[_+ ]xp','winxp','windows[_+ ]nt[_+ ]5\.1','winxp', 'syndirella', 'winxp',
101'windows[_+ ]me','winme','win[_+ ]9x','winme',
102'windows[_+ ]?2000','win2000','windows[_+ ]nt[_+ ]5','win2000',
103'winnt','winnt','windows[_+ \-]?nt','winnt','win32','winnt',
104'win(.*)98','win98',
105'win(.*)95','win95',
106'win(.*)16','win16','windows[_+ ]3','win16',
107'win(.*)ce','wince',
108# Macintosh OS family
109'mac[_+ ]os[_+ ]x','macosx', 'vienna', 'macosx', 'newsfire', 'macosx', 'applesyndication', 'macosx',
110'mac[_+ ]?p','macintosh','mac[_+ ]68','macintosh','macweb','macintosh','macintosh','macintosh',
111# Linux family (linuxyyy)
112'linux(.*)centos','linuxcentos',
113'linux(.*)debian','linuxdebian',
114'linux(.*)fedora','linuxfedora',
115'linux(.*)mandr','linuxmandr',
116'linux(.*)red[_+ ]hat','linuxredhat',
117'linux(.*)suse','linuxsuse',
118'linux(.*)ubuntu','linuxubuntu',
119'linux','linux', 'akregator', 'linux',
120# Hurd family
121'gnu.hurd','gnu',
122# BSDs family (bsdyyy)
123'bsdi','bsdi',
124'gnu.kfreebsd','bsdkfreebsd', # Must be before freebsd
125'freebsd','bsdfreebsd',
126'openbsd','bsdopenbsd',
127'netbsd','bsdnetbsd',
128# Other Unix, Unix-like
129'aix','aix',
130'sunos','sunos',
131'irix','irix',
132'osf','osf',
133'hp\-ux','hp\-ux',
134'unix','unix',
135'x11','unix',
136'gnome\-vfs','unix',
137'plagger', 'unix',
138# Other famous OS
139'beos','beos',
140'os/2','os/2',
141'amiga','amigaos',
142'atari','atari',
143'vms','vms',
144'commodore','commodore',
145# Miscellanous OS
146'cp/m','cp/m',
147'crayos','crayos',
148'dreamcast','dreamcast',
149'risc[_+ ]?os','riscos',
150'symbian','symbian',
151'webtv','webtv',
152'playstation[_+ ]portable', 'psp',
153'xbox', 'winxbox',
154);
155
156# OS name list ('os unique id in lower case','os clear text')
157# Each unique ID string is associated to a label
158#-----------------------------------------------------------
15913.8e-53.8e-5%OSHashLib = (
160# Windows family OS
161'winlong','<a href="http://www.microsoft.com/windows/" title="Windows Vista home page [new window]" target="_blank">Windows Vista</a>',
162'win2003','<a href="http://www.microsoft.com/windowsserver2003/" title="Windows 2003 home page [new window]" target="_blank">Windows 2003</a>',
163'winxp','<a href="http://www.microsoft.com/windowsxp/" title="Windows XP home page [new window]" target="_blank">Windows XP</a>',
164'winme','<a href="http://www.microsoft.com/windowsme/" title="Windows Me home page [new window]" target="_blank">Windows Me</a>',
165'win2000','<a href="http://www.microsoft.com/windows2000/" title="Windows 2000 home page [new window]" target="_blank">Windows 2000</a>',
166'winnt','<a href="http://www.microsoft.com/ntworkstation/" title="Windows NT home page [new window]" target="_blank">Windows NT</a>',
167'win98','<a href="http://www.microsoft.com/windows98/" title="Windows 98 home page [new window]" target="_blank">Windows 98</a>',
168'win95','<a href="http://www.microsoft.com/windows95/" title="Windows 95 home page [new window]" target="_blank">Windows 95</a>',
169'win16','<a href="http://www.microsoft.com/" title="Windows 3.xx home page [new window]" target="_blank">Windows 3.xx</a>',
170'wince','<a href="http://www.microsoft.com/windowsmobile/" title="Windows CE home page [new window]" target="_blank">Windows CE</a>',
171'winxbox','<a href="http://www.xbox.com/en-US/hardware/xbox/" title="Microsoft XBOX home page [new window]" target="_blank">Microsoft XBOX</a>',
172 # Macintosh OS
173'macosx','<a href="http://www.apple.com/macosx/" title="Mac OS X home page [new window]" target="_blank">Mac OS X</a>',
174'macintosh','<a href="http://www.apple.com/" title="Mac OS home page [new window]" target="_blank">Mac OS</a>',
175# Linux
176'linuxcentos','<a href="http://www.centos.org/" title="Centos home page [new window]" target="_blank">Centos</a>',
177'linuxdebian','<a href="http://www.debian.org/" title="Debian home page [new window]" target="_blank">Debian</a>',
178'linuxfedora','<a href="http://fedora.redhat.com/" title="Fedora home page [new window]" target="_blank">Fedora</a>',
179'linuxmandr','<a href="http://www.mandriva.com/" title="Mandriva (former Mandrake) home page [new window]" target="_blank">Mandriva (or Mandrake)</a>',
180'linuxredhat','<a href="http://www.redhat.com/" title="Red Hat home page [new window]" target="_blank">Red Hat</a>',
181'linuxsuse','<a href="http://www.novell.com/linux/suse/" title="Suse home page [new window]" target="_blank">Suse</a>',
182'linuxubuntu','<a href="http://www.ubuntulinux.org/" title="Ubuntu home page [new window]" target="_blank">Ubuntu</a>',
183'linux','<a href="http://www.distrowatch.com/" title="Linux DistroWatch home page. Useful if you find the associated user agent string in your logs. [new window]" target="_blank">Linux (Unknown/unspecified)</a>',
184'linux','GNU Linux (Unknown or unspecified distribution)',
185# Hurd
186'gnu','<a href="www.gnu.org/software/hurd/hurd.html" title="GNU Hurd home page [new window]" target="_blank">GNU Hurd</a>',
187# BSDs
188'bsdi','<a href="http://en.wikipedia.org/wiki/BSDi" title="BSDi home page [new window]" target="_blank">BSDi</a>',
189'bsdkfreebsd','GNU/kFreeBSD',
190'freebsd','<a href="http://www.freebsd.org/" title="FreeBSD home page [new window]" target="_blank">FreeBSD</a>', # For backard compatibility
191'bsdfreebsd','<a href="http://www.freebsd.org/" title="FreeBSD home page [new window]" target="_blank">FreeBSD</a>',
192'openbsd','<a href="http://www.openbsd.org/" title="OpenBSD home page [new window]" target="_blank">OpenBSD</a>', # For backard compatibility
193'bsdopenbsd','<a href="http://www.openbsd.org/" title="OpenBSD home page [new window]" target="_blank">OpenBSD</a>',
194'netbsd','<a href="http://www.netbsd.org/" title="NetBSD home page [new window]" target="_blank">NetBSD</a>', # For backard compatibility
195'bsdnetbsd','<a href="http://www.netbsd.org/" title="NetBSD home page [new window]" target="_blank">NetBSD</a>',
196# Other Unix, Unix-like
197'aix','<a href="http://www-1.ibm.com/servers/aix/" title="Aix home page [new window]" target="_blank">Aix</a>',
198'sunos','<a href="http://www.sun.com/software/solaris/" title="Sun Solaris home page [new window]" target="_blank">Sun Solaris</a>',
199'irix','<a href="http://www.sgi.com/products/software/irix/" title="Irix home page [new window]" target="_blank">Irix</a>',
200'osf','<a href="http://www.tru64.org/" title="OSF Unix home page [new window]" target="_blank">OSF Unix</a>',
201'hp\-ux','<a href="http://www.hp.com/products1/unix/operating/" title="HP UX home page [new window]" target="_blank">HP UX</a>',
202'unix','Unknown Unix system',
203# Other famous OS
204'beos','<a href="http://www.beincorporated.com/" title="BeOS home page [new window]" target="_blank">BeOS</a>',
205'os/2','<a href="http://www.ibm.com/software/os/warp/" title="OS/2 home page [new window]" target="_blank">OS/2</a>',
206'amigaos','<a href="http://www.amiga.com/amigaos/" title="AmigaOS home page [new window]" target="_blank">AmigaOS</a>',
207'atari','<a href="http://www.atarimuseum.com/computers/computers.html" title="Atari home page [new window]" target="_blank">Atari</a>',
208'vms','<a href="http://h71000.www7.hp.com/" title="VMS home page [new window]" target="_blank">VMS</a>',
209'commodore','<a href="http://en.wikipedia.org/wiki/Commodore_64" title="Commodore 64 wikipedia page [new window]" target="_blank">Commodore 64</a>',
210# Miscellanous OS
211'cp/m','<a href="http://www.digitalresearch.biz/CPM.HTM" title="CPM home page [new window]" target="_blank">CPM</a>',
212'crayos','<a href="http://www.cray.com/" title="CrayOS home page [new window]" target="_blank">CrayOS</a>',
213'dreamcast','<a href="http://www.sega.com/" title="Dreamcast home page [new window]" target="_blank">Dreamcast</a>',
214'riscos','<a href="http://www.riscos.com/" title="RISC OS home page [new window]" target="_blank">RISC OS</a>',
215'symbian','<a href="http://www.symbian.com/" title="Symbian OS home page [new window]" target="_blank">Symbian OS</a>',
216'webtv','<a href="http://www.webtv.com/" title="WebTV home page [new window]" target="_blank">WebTV</a>',
217'psp', '<a href="http://www.playstation.jp/psp/" title="Sony PlayStation Portable home page [new window]" target="_blank">Sony PlayStation Portable</a>',
218);
219
220
22115.9e-55.9e-51;
222
223
224# Informations from microsoft for detecting windows version
225# Windows 95 retail, OEM 4.00.950 7/11/95
226# Windows 95 retail SP1 4.00.950A 7/11/95-12/31/95
227# OEM Service Release 2 4.00.1111* (4.00.950B) 8/24/96
228# OEM Service Release 2.1 4.03.1212-1214* (4.00.950B) 8/24/96-8/27/97
229# OEM Service Release 2.5 4.03.1214* (4.00.950C) 8/24/96-11/18/97
230# Windows 98 retail, OEM 4.10.1998 5/11/98
231# Windows 98 Second Edition 4.10.2222A 4/23/99
232# Windows Me 4.90.3000