1 |
joku |
63 |
<?php |
2 |
|
|
/* This file is part of BBClone (A PHP based Web Counter on Steroids) |
3 |
|
|
* |
4 |
|
|
* SVN FILE $Id$ |
5 |
|
|
* |
6 |
joku |
312 |
* Copyright (C) 2001-2015, the BBClone Team (see doc/authors.txt for details) |
7 |
joku |
63 |
* |
8 |
|
|
* This program is free software: you can redistribute it and/or modify |
9 |
|
|
* it under the terms of the GNU General Public License as published by |
10 |
|
|
* the Free Software Foundation, either version 3 of the License, or |
11 |
|
|
* (at your option) any later version. |
12 |
|
|
* |
13 |
|
|
* This program is distributed in the hope that it will be useful, |
14 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
|
* GNU General Public License for more details. |
17 |
|
|
* |
18 |
|
|
* See doc/copying.txt for details |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
///////////////////////////////////// |
22 |
|
|
// OS (Operation System) Detection // |
23 |
|
|
///////////////////////////////////// |
24 |
|
|
|
25 |
|
|
$os = array( |
26 |
|
|
"aix"=> array( |
27 |
|
|
"icon"=> "aix", |
28 |
|
|
"title" => "AIX", |
29 |
|
|
"rule" => array( |
30 |
|
|
"-aix([0-9.]{1,10})" => "\\1", |
31 |
|
|
"[ ;\(]aix" => "" |
32 |
|
|
), |
33 |
|
|
"uri" => "" |
34 |
|
|
), |
35 |
|
|
"amiga" => array( |
36 |
|
|
"icon" => "amiga", |
37 |
|
|
"title" => "AmigaOS", |
38 |
|
|
"rule" => array( |
39 |
|
|
"Amiga[ ]?OS[ /]([0-9.V]{1,10})" => "\\1", |
40 |
|
|
"amiga" => "" |
41 |
|
|
), |
42 |
|
|
"uri" => "" |
43 |
|
|
), |
44 |
matthys |
343 |
// Before Android detection, due to Windows Phone running on Android-based phones |
45 |
|
|
"windowsphone" => array( |
46 |
|
|
"icon" => "windowsphone", |
47 |
|
|
"title" => "Windows Phone", |
48 |
|
|
"rule" => array( |
49 |
|
|
"Windows Phone ([0-9.]{1,10})" => "\\1", |
50 |
|
|
"Windows Phone OS ([0-9.]{1,10})" => "\\1" |
51 |
|
|
), |
52 |
|
|
"uri" => "http://www.windowsphone.com" |
53 |
|
|
), |
54 |
joku |
63 |
"android" => array( |
55 |
|
|
"icon" => "android", |
56 |
|
|
"title" => "Android", |
57 |
|
|
"rule" => array( |
58 |
|
|
"Android ([0-9.]{1,10})" => "\\1", |
59 |
|
|
"Android" => "" |
60 |
|
|
), |
61 |
|
|
"uri" => "http://www.android.com/" |
62 |
|
|
), |
63 |
|
|
"aptosid" => array( |
64 |
|
|
"icon" => "aptosid", |
65 |
|
|
"title" => "aptosid Linux", |
66 |
|
|
"rule" => array( |
67 |
|
|
"aptosid" => "" |
68 |
|
|
), |
69 |
|
|
"uri" => "http://aptosid.com/" |
70 |
|
|
), |
71 |
|
|
"arch" => array( |
72 |
|
|
"icon" => "arch", |
73 |
|
|
"title" => "Arch Linux", |
74 |
|
|
"rule" => array( |
75 |
|
|
"Arch Linux" => "" |
76 |
|
|
), |
77 |
|
|
"uri" => "http://www.archlinux.org/" |
78 |
|
|
), |
79 |
|
|
"atari" => array( |
80 |
|
|
"icon" => "question", |
81 |
|
|
"title" => "Atari", |
82 |
|
|
"rule" => array( |
83 |
|
|
"atari[ /]([0-9.b]{1,10})" => "\\1" |
84 |
|
|
), |
85 |
|
|
"uri" => "http://www.atari.com/" |
86 |
|
|
), |
87 |
|
|
"atheos" => array( |
88 |
|
|
"icon" => "atheos", |
89 |
|
|
"title" => "AtheOS", |
90 |
|
|
"rule" => array( |
91 |
|
|
"atheos" => "" |
92 |
|
|
), |
93 |
|
|
"uri" => "" |
94 |
|
|
), |
95 |
|
|
"bada" => array( |
96 |
|
|
"icon" => "bada", |
97 |
|
|
"title" => "Bada", |
98 |
|
|
"rule" => array( |
99 |
|
|
"Bada[ /]([0-9]{1,10})" => "\\1" |
100 |
|
|
), |
101 |
|
|
"uri" => "http://www.bada.com/" |
102 |
|
|
), |
103 |
|
|
"blackberry" => array( |
104 |
|
|
"icon" => "blackberry", |
105 |
|
|
"title" => "BlackBerry OS", |
106 |
|
|
"rule" => array( |
107 |
matthys |
350 |
"BlackBerry" => "", |
108 |
|
|
"BB10;" => "" |
109 |
joku |
63 |
), |
110 |
|
|
"uri" => "http://www.blackberry.com/" |
111 |
|
|
), |
112 |
|
|
"bluecoat" => array( |
113 |
|
|
"icon" => "bluecoat", |
114 |
|
|
"title" => "Bluecoat DRTR", |
115 |
|
|
"rule" => array( |
116 |
|
|
"bluecoat drtr" => "\\1" |
117 |
|
|
), |
118 |
|
|
"uri" => "" |
119 |
|
|
), |
120 |
|
|
"brew" => array( |
121 |
|
|
"icon" => "brewmp", |
122 |
|
|
"title" => "Brew MP", |
123 |
|
|
"rule" => array( |
124 |
|
|
"BREW[ /]([0-9.]{1,10})" => "\\1" |
125 |
|
|
), |
126 |
|
|
"uri" => "http://www.brewmp.com/" |
127 |
|
|
), |
128 |
|
|
"centos" => array( |
129 |
|
|
"icon" => "centos", |
130 |
|
|
"title" => "CentOS", |
131 |
|
|
"rule" => array( |
132 |
|
|
"centos([0-9]{1})" => "\\1", |
133 |
|
|
"el([0-9.]{1}).*centos" => "\\1", |
134 |
|
|
"CentOS" => "" |
135 |
|
|
), |
136 |
|
|
"uri" => "http://www.centos.org/" |
137 |
|
|
), |
138 |
|
|
"cerberian" => array( |
139 |
|
|
"icon" => "bluecoat", |
140 |
|
|
"title" => "Cerberian DRTR", |
141 |
|
|
"rule" => array( |
142 |
|
|
"Cerberian Drtrs Version[ /\-]([0-9.]{1,10})" => "\\1" |
143 |
|
|
), |
144 |
|
|
"uri" => "" |
145 |
|
|
), |
146 |
|
|
"c64" => array( |
147 |
|
|
"icon" => "c64", |
148 |
|
|
"title" => "Commodore 64", |
149 |
|
|
"rule" => array( |
150 |
|
|
"Commodore[ ]?64" => "" |
151 |
|
|
), |
152 |
|
|
"uri" => "" |
153 |
|
|
), |
154 |
joku |
331 |
"cros" => array( |
155 |
|
|
"icon" => "cros", |
156 |
joku |
333 |
"title" => "Chrome OS", |
157 |
joku |
331 |
"rule" => array( |
158 |
|
|
"CrOS" => "" |
159 |
|
|
), |
160 |
matthys |
340 |
"uri" => "http://getchrome.eu/" |
161 |
joku |
331 |
), |
162 |
joku |
63 |
"darwin" => array( |
163 |
|
|
"icon" => "darwin", |
164 |
|
|
"title" => "Darwin", |
165 |
|
|
"rule" => array( |
166 |
|
|
"Darwin[ ]?([0-9.]{1,10})" => "\\1", |
167 |
|
|
"Darwin" => "" |
168 |
|
|
), |
169 |
|
|
"uri" => "" |
170 |
|
|
), |
171 |
|
|
"digital" => array( |
172 |
|
|
"icon" => "digital", |
173 |
|
|
"title" => "Digital", |
174 |
|
|
"rule" => array( |
175 |
|
|
"OSF[0-9][ ]?V(4[0-9.]{1,10})" => "\\1" |
176 |
|
|
), |
177 |
|
|
"uri" => "" |
178 |
|
|
), |
179 |
|
|
"dreamcast" => array( |
180 |
|
|
"icon" => "dreamcast", |
181 |
|
|
"title" => "SEGA Dreamcast", |
182 |
|
|
"rule" => array( |
183 |
|
|
"\(SonicPassport\)" => "", |
184 |
|
|
"\(Dream(Passport|Key)[ /]([0-9.]{1,10})\)" => "", |
185 |
|
|
"\(Dream(Passport|Key)[ /]([0-9.]{1,10}); ([A-Z.a-z/]{1,50})\)" => "", |
186 |
|
|
"\(Planetweb[ /]([0-9.a-z]{1,10})" => "" |
187 |
|
|
), |
188 |
|
|
"uri" => "http://css.vis.ne.jp/dp-agent.shtml" |
189 |
|
|
), |
190 |
|
|
"embedix" => array( |
191 |
|
|
"icon" => "question", |
192 |
|
|
"title" => "Embedix", |
193 |
|
|
"rule" => array( |
194 |
|
|
"Embedix" => "" |
195 |
|
|
), |
196 |
|
|
"uri" => "" |
197 |
|
|
), |
198 |
|
|
"Fedora Linux" => array( |
199 |
|
|
"icon" => "fedora", |
200 |
|
|
"title" => "Fedora Linux", |
201 |
|
|
"rule" => array( |
202 |
|
|
"Fedora/[0-9.-]+fc([0-9]+)" => "\\1", |
203 |
|
|
"fedora" => "" |
204 |
|
|
), |
205 |
|
|
"uri" => "http://fedoraproject.org/" |
206 |
|
|
), |
207 |
|
|
"fenix" => array( |
208 |
|
|
"icon" => "question", |
209 |
|
|
"title" => "Fenix", |
210 |
|
|
"rule" => array( |
211 |
|
|
"Fenix" => "" |
212 |
|
|
), |
213 |
|
|
"uri" => "" |
214 |
|
|
), |
215 |
|
|
"freebsd" => array( |
216 |
|
|
"icon" => "freebsd", |
217 |
|
|
"title" => "FreeBSD", |
218 |
|
|
"rule" => array( |
219 |
|
|
"free[ \-]?bsd[ /]([a-z0-9._]{1,10})" => "\\1", |
220 |
|
|
"free[ \-]?bsd" => "" |
221 |
|
|
), |
222 |
|
|
"uri" => "http://www.freebsd.org/" |
223 |
|
|
), |
224 |
|
|
"gentoo" => array( |
225 |
|
|
"icon" => "gentoo", |
226 |
|
|
"title" => "Gentoo Linux", |
227 |
|
|
"rule" => array( |
228 |
|
|
"gentoo" => "" |
229 |
|
|
), |
230 |
|
|
"uri" => "http://www.gentoo.org/" |
231 |
|
|
), |
232 |
|
|
"haiku" => array( |
233 |
|
|
"icon" => "haiku", |
234 |
|
|
"title" => "Haiku", |
235 |
|
|
"rule" => array( |
236 |
|
|
"Haiku BePC" => "" |
237 |
|
|
), |
238 |
|
|
"uri" => "http://www.haiku-os.org/" |
239 |
|
|
), |
240 |
|
|
"hiptop" => array( |
241 |
|
|
"icon" => "question", |
242 |
|
|
"title" => "hiptop", |
243 |
|
|
"rule" => array( |
244 |
|
|
"Danger hiptop ([0-9.]{1,10})" => "\\1" |
245 |
|
|
), |
246 |
|
|
"uri" => "" |
247 |
|
|
), |
248 |
|
|
"hpux" => array( |
249 |
|
|
"icon" => "hp", |
250 |
|
|
"title" => "HPUX", |
251 |
|
|
"rule" => array( |
252 |
|
|
"hp[ \-]?ux[ /]([a-z0-9._]{1,10})" => "\\1" |
253 |
|
|
), |
254 |
|
|
"uri" => "" |
255 |
|
|
), |
256 |
|
|
"ios" => array( |
257 |
|
|
"icon" => "ios", |
258 |
|
|
"title" => "iOS", |
259 |
|
|
"rule" => array( |
260 |
|
|
"i(Phone|Pod|Pad).*OS[ /]([0-9]{1,10})_([0-9]{1,10})" => "\\2.\\3", |
261 |
|
|
"i(Phone|Pod|Pad)" => "" |
262 |
|
|
), |
263 |
|
|
"uri" => "http://www.apple.com/ios/" |
264 |
|
|
), |
265 |
|
|
"irix" => array( |
266 |
|
|
"icon" => "irix", |
267 |
|
|
"title" => "IRIX", |
268 |
|
|
"rule" => array( |
269 |
|
|
"irix[0-9]*[ /]([0-9.]{1,10})" => "\\1", |
270 |
|
|
"irix" => "" |
271 |
|
|
), |
272 |
|
|
"uri" => "" |
273 |
|
|
), |
274 |
|
|
"macosx" => array( |
275 |
|
|
"icon" => "macosx", |
276 |
|
|
"title" => "MacOS X", |
277 |
|
|
"rule" => array( |
278 |
|
|
"Mac[ _]OS[ _]X[ /_]([0-9]{1,10})[._]([0-9]{1,10})[._]([0-9]{1,10})" => "\\1.\\2.\\3", |
279 |
|
|
"Mac[ _]OS[ _]X[ /_]([0-9]{1,10})[._]([0-9]{1,10})" => "\\1.\\2", |
280 |
|
|
"Mac[ _]OS[ _]X" => "", |
281 |
|
|
"Mac 10.([0-9.]{1,10})" => "\\1" |
282 |
|
|
), |
283 |
|
|
"uri" => "http://www.apple.com/macosx/" |
284 |
|
|
), |
285 |
|
|
"macppc" => array( |
286 |
|
|
"icon" => "macppc", |
287 |
|
|
"title" => "MacOS PPC", |
288 |
|
|
"rule" => array( |
289 |
|
|
"Mac(_Power|intosh.+P)PC" => "" |
290 |
|
|
), |
291 |
|
|
"uri" => "" |
292 |
|
|
), |
293 |
|
|
"mandriva" => array( |
294 |
|
|
"icon" => "mandriva", |
295 |
|
|
"title" => "Mandriva", |
296 |
|
|
"rule" => array( |
297 |
|
|
"Mandriva[ /]([0-9.]{1,10})" => "\\1", |
298 |
|
|
"Linux[ /\-]([0-9.-]{1,10}).mdk" => "", |
299 |
|
|
"Linux[ /\-]([0-9.-]{1,10}).mdv" => "\\1" |
300 |
|
|
), |
301 |
|
|
"uri" => "http://www.mandriva.com/" |
302 |
|
|
), |
303 |
|
|
|
304 |
|
|
"minix" => array( |
305 |
|
|
"icon" => "minix", |
306 |
|
|
"title" => "Minix", |
307 |
|
|
"rule" => array( |
308 |
|
|
"Minix[/ ]?([0-9.]{1,10})?" => "\\1" |
309 |
|
|
), |
310 |
|
|
"uri" => "http://www.minix3.org/" |
311 |
|
|
), |
312 |
|
|
"mint" => array( |
313 |
|
|
"icon" => "mint", |
314 |
|
|
"title" => "Linux Mint", |
315 |
|
|
"rule" => array( |
316 |
|
|
"Linux Mint[/ ]?([0-9.]{1,10})?" => "\\1" |
317 |
|
|
), |
318 |
|
|
"uri" => "" |
319 |
|
|
), |
320 |
|
|
"morphos" => array( |
321 |
|
|
"icon" => "morphos", |
322 |
|
|
"title" => "MorphOS", |
323 |
|
|
"rule" => array( |
324 |
|
|
"MorphOS[ /]([0-9.]{1,10})" => "\\1", |
325 |
|
|
"MorphOS" => "" |
326 |
|
|
), |
327 |
|
|
"uri" => "" |
328 |
|
|
), |
329 |
|
|
"netbsd" => array( |
330 |
|
|
"icon" => "netbsd", |
331 |
|
|
"title" => "NetBSD", |
332 |
|
|
"rule" => array( |
333 |
|
|
"net[ \-]?bsd[ /]([a-z0-9._]{1,10})" => "\\1", |
334 |
|
|
"net[ \-]?bsd" => "" |
335 |
|
|
), |
336 |
|
|
"uri" => "" |
337 |
|
|
), |
338 |
|
|
"nintendods" => array( |
339 |
|
|
"icon" => "ds", |
340 |
|
|
"title" => "Nintento DS", |
341 |
|
|
"rule" => array( |
342 |
|
|
"Nintendo DS v([0-9.]{1,10})" => "" |
343 |
|
|
), |
344 |
|
|
"uri" => "" |
345 |
|
|
), |
346 |
|
|
"openbsd" => array( |
347 |
|
|
"icon" => "openbsd", |
348 |
|
|
"title" => "OpenBSD", |
349 |
|
|
"rule" => array( |
350 |
|
|
"open[ \-]?bsd[ /]([a-z0-9._]{1,10})" => "\\1", |
351 |
|
|
"open[ \-]?bsd" => "" |
352 |
|
|
), |
353 |
|
|
"uri" => "" |
354 |
|
|
), |
355 |
|
|
"openvms" => array( |
356 |
|
|
"icon" => "openvms", |
357 |
|
|
"title" => "OpenVMS", |
358 |
|
|
"rule" => array( |
359 |
|
|
"Open[ \-]?VMS[ /]([a-z0-9._]{1,10})" => "\\1", |
360 |
|
|
"Open[ \-]?VMS" => "" |
361 |
|
|
), |
362 |
|
|
"uri" => "" |
363 |
|
|
), |
364 |
|
|
"palm" => array( |
365 |
|
|
"icon" => "palm", |
366 |
|
|
"title" => "PalmOS", |
367 |
|
|
"rule" => array( |
368 |
|
|
"Palm[ \-]?(Source|OS)[ /]?([0-9.]{1,10})" => "\\2", |
369 |
|
|
"Palm[ \-]?(Source|OS)" => "" |
370 |
|
|
), |
371 |
|
|
"uri" => "" |
372 |
|
|
), |
373 |
|
|
"pclinux" => array( |
374 |
|
|
"icon" => "pclinux", |
375 |
|
|
"title" => "PCLinuxOS", |
376 |
|
|
"rule" => array( |
377 |
|
|
"PCLinuxOS[ /]?([0-9.]{1,10})" => "\\1" |
378 |
|
|
), |
379 |
|
|
"uri" => "http://www.pclinuxos.com/" |
380 |
|
|
), |
381 |
|
|
"photon" => array( |
382 |
|
|
"icon" => "qnx", |
383 |
|
|
"title" => "QNX Photon", |
384 |
|
|
"rule" => array( |
385 |
|
|
"photon" => "", |
386 |
|
|
"QNX" => "" |
387 |
|
|
), |
388 |
|
|
"uri" => "http://www.qnx.com/" |
389 |
|
|
), |
390 |
|
|
"psp" => array( |
391 |
|
|
"icon" => "playstation", |
392 |
|
|
"title" => "PlayStation Portable", |
393 |
|
|
"rule" => array( |
394 |
|
|
"PlayStation Portable.* ([0-9._]{1,10})" => "\\1", |
395 |
|
|
"PlayStation Portable" => "" |
396 |
|
|
), |
397 |
|
|
"uri" => "" |
398 |
|
|
), |
399 |
|
|
"playstation" => array( |
400 |
|
|
"icon" => "playstation", |
401 |
|
|
"title" => "PlayStation", |
402 |
|
|
"rule" => array( |
403 |
|
|
"PlayStation" => "", |
404 |
|
|
"PS2" => "" |
405 |
|
|
), |
406 |
|
|
"uri" => "" |
407 |
|
|
), |
408 |
|
|
"pld" => array( |
409 |
|
|
"icon" => "pld", |
410 |
|
|
"title" => "PLD Linux", |
411 |
|
|
"rule" => array( |
412 |
|
|
"PLD[ /]?([0-9.]{1,10})" => "\\1", |
413 |
|
|
"PLD" => "" |
414 |
|
|
), |
415 |
|
|
"uri" => "http://www.pld-linux.org/" |
416 |
|
|
), |
417 |
|
|
"reactos" => array( |
418 |
|
|
"icon" => "reactos", |
419 |
|
|
"title" => "ReactOS", |
420 |
|
|
"rule" => array( |
421 |
|
|
"ReactOS[ /]?([0-9.]{1,10})" => "\\1", |
422 |
|
|
"ReactOS" => "" |
423 |
|
|
), |
424 |
|
|
"uri" => "http://www.reactos.org/" |
425 |
|
|
), |
426 |
|
|
"redhat" => array( |
427 |
|
|
"icon" => "redhat", |
428 |
|
|
"title" => "RedHat", |
429 |
|
|
"rule" => array( |
430 |
|
|
"Red Hat[ /]?([0-9.]{1,10})" => "\\1", |
431 |
|
|
"RedHat" => "" |
432 |
|
|
), |
433 |
|
|
"uri" => "http://www.redhat.com/" |
434 |
|
|
), |
435 |
|
|
"risc" => array( |
436 |
|
|
"icon" => "risc", |
437 |
|
|
"title" => "RiscOS", |
438 |
|
|
"rule" => array( |
439 |
|
|
"risc[ \-]?os[ /]?([0-9.]{1,10})" => "\\1", |
440 |
|
|
"risc[ \-]?os" => "" |
441 |
|
|
), |
442 |
|
|
"uri" => "" |
443 |
|
|
), |
444 |
|
|
"slitaz" => array( |
445 |
|
|
"icon" => "slitaz", |
446 |
|
|
"title" => "SliTaz Linux", |
447 |
|
|
"rule" => array( |
448 |
|
|
"SliTaz" => "" |
449 |
|
|
), |
450 |
|
|
"uri" => "http://www.slitaz.org/" |
451 |
|
|
), |
452 |
|
|
"suse" => array( |
453 |
|
|
"icon" => "suse", |
454 |
|
|
"title" => "SuSE Linux", |
455 |
|
|
"rule" => array( |
456 |
|
|
"suse" => "" |
457 |
|
|
), |
458 |
|
|
"uri" => "http://www.novell.com/linux/" |
459 |
|
|
), |
460 |
|
|
"sun" => array( |
461 |
|
|
"icon" => "sun", |
462 |
|
|
"title" => "SunOS", |
463 |
|
|
"rule" => array( |
464 |
|
|
"sun[ \-]?os[ /]?([0-9.]{1,10})" => "\\1", |
465 |
|
|
"sun[ \-]?os" => "", |
466 |
|
|
"^SUNPlex[ /]?([0-9.]{1,10})" => "\\1" |
467 |
|
|
), |
468 |
|
|
"uri" => "" |
469 |
|
|
), |
470 |
|
|
"symbian" => array( |
471 |
|
|
"icon" => "symbian", |
472 |
|
|
"title" => "Symbian OS", |
473 |
|
|
"rule" => array( |
474 |
|
|
"symbian[ \-]?os[ /]?([0-9.]{1,10})" => "\\1", |
475 |
|
|
"symbOS" => "", |
476 |
|
|
"symbian" => "" |
477 |
|
|
), |
478 |
|
|
"uri" => "" |
479 |
|
|
), |
480 |
|
|
"trisquel" => array( |
481 |
|
|
"icon" => "trisquel", |
482 |
|
|
"title" => "Trisquel GNU Linux", |
483 |
|
|
"rule" => array( |
484 |
|
|
"Trisquel[ /]([0-9.]{1,10})" => "\\1" |
485 |
|
|
), |
486 |
|
|
"uri" => "http://trisquel.info/" |
487 |
|
|
), |
488 |
|
|
"tru64" => array( |
489 |
|
|
"icon" => "tru64", |
490 |
|
|
"title" => "Tru64", |
491 |
|
|
"rule" => array( |
492 |
|
|
"OSF[0-9][ ]?V(5[0-9.]{1,10})" => "\\1" |
493 |
|
|
), |
494 |
|
|
"uri" => "" |
495 |
|
|
), |
496 |
|
|
"ubuntu" => array( |
497 |
|
|
"icon" => "ubuntu", |
498 |
|
|
"title" => "Ubuntu Linux", |
499 |
|
|
"rule" => array( |
500 |
|
|
"ubuntu/([0-9.]+)" => "\\1", |
501 |
|
|
"ubuntu" => "" |
502 |
|
|
), |
503 |
|
|
"uri" => "http://www.ubuntu.com/" |
504 |
|
|
), |
505 |
|
|
"unixware" => array( |
506 |
|
|
"icon" => "sco", |
507 |
|
|
"title" => "UnixWare", |
508 |
|
|
"rule" => array( |
509 |
|
|
"unixware[ /]?([0-9.]{1,10})" => "\\1", |
510 |
|
|
"unixware" => "" |
511 |
|
|
), |
512 |
|
|
"uri" => "" |
513 |
|
|
), |
514 |
|
|
"wii" => array( |
515 |
|
|
"icon" => "wii", |
516 |
|
|
"title" => "Wii", |
517 |
|
|
"rule" => array( |
518 |
|
|
"^Nintendo Wii" => "", |
519 |
|
|
" wii" => "" |
520 |
|
|
), |
521 |
|
|
"uri" => "http://www.wii.com/" |
522 |
|
|
), |
523 |
|
|
"webos" => array( |
524 |
|
|
"icon" => "palm", |
525 |
|
|
"title" => "web OS", |
526 |
|
|
"rule" => array( |
527 |
|
|
"webOS[ /]?([0-9.]{1,10})" => "\\1" |
528 |
|
|
), |
529 |
|
|
"uri" => "http://www.palm.com/" |
530 |
|
|
), |
531 |
|
|
"windowsxp64" => array( |
532 |
|
|
"icon" => "windowsxp", |
533 |
|
|
"title" => "Windows XP (64-bit)", |
534 |
|
|
"rule" => array( |
535 |
|
|
"wi(n|ndows)[ \-]?(2003|nt[ /]?5\.2).*(WOW64|Win64)" => "" |
536 |
|
|
), |
537 |
|
|
"uri" => "http://www.microsoft.com/windowsxp/64bit/" |
538 |
|
|
), |
539 |
|
|
"windows2003" => array( |
540 |
|
|
"icon" => "windowsxp", |
541 |
|
|
"title" => "Windows 2003", |
542 |
|
|
"rule" => array( |
543 |
|
|
"wi(n|ndows)[ \-]?(2003|nt[ /]?5\.2)" => "" |
544 |
|
|
), |
545 |
|
|
"uri" => "http://www.microsoft.com/windowsserver2003/" |
546 |
|
|
), |
547 |
|
|
"windows2k" => array( |
548 |
|
|
"icon" => "windows", |
549 |
|
|
"title" => "Windows 2000", |
550 |
|
|
"rule" => array( |
551 |
|
|
"wi(n|ndows)[ \-]?(2000|nt[ /]?5\.0)" => "" |
552 |
|
|
), |
553 |
|
|
"uri" => "http://www.microsoft.com/windows2000/" |
554 |
|
|
), |
555 |
|
|
"windows31" => array( |
556 |
|
|
"icon" => "windows31", |
557 |
|
|
"title" => "Windows 3.1", |
558 |
|
|
"rule" => array( |
559 |
|
|
"wi(n|ndows)[ \-]?3\.[1]+" => "", |
560 |
|
|
"Win16" => "" |
561 |
|
|
), |
562 |
|
|
"uri" => "" |
563 |
|
|
), |
564 |
|
|
"windows95" => array( |
565 |
|
|
"icon" => "windows", |
566 |
|
|
"title" => "Windows 95", |
567 |
|
|
"rule" => array( |
568 |
|
|
"wi(n|ndows)[ \-]?95" => "" |
569 |
|
|
), |
570 |
|
|
"uri" => "http://www.microsoft.com/windows95/" |
571 |
|
|
), |
572 |
|
|
"windowsce" => array( |
573 |
|
|
"icon" => "windowsce", |
574 |
|
|
"title" => "Windows CE", |
575 |
|
|
"rule" => array( |
576 |
|
|
"wi(n|ndows)[ \-]?ce" => "", |
577 |
|
|
"wi(n|ndows)[ /.;]*mobile" => "", |
578 |
|
|
"(Microsoft|Windows) Pocket" => "" |
579 |
|
|
), |
580 |
|
|
"uri" => "http://www.microsoft.com/windows/embedded/" |
581 |
|
|
), |
582 |
|
|
"windowsme" => array( |
583 |
|
|
"icon" => "windowsme", |
584 |
|
|
"title" => "Windows ME", |
585 |
|
|
"rule" => array( |
586 |
|
|
"win 9x 4\.90" => "", |
587 |
|
|
"wi(n|ndows)[ \-]?me" => "" |
588 |
|
|
), |
589 |
|
|
"uri" => "http://www.microsoft.com/windowsme/" |
590 |
|
|
), |
591 |
|
|
"windowsvista" => array( |
592 |
|
|
"icon" => "windowsvista", |
593 |
|
|
"title" => "Windows Vista", |
594 |
|
|
"rule" => array( |
595 |
|
|
"Windows Vista" => "", |
596 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?6\.0" => "", |
597 |
|
|
"wi(n|ndows)[ \-]?6\.0" => "" |
598 |
|
|
), |
599 |
|
|
"uri" => "http://www.microsoft.com/windowsvista/" |
600 |
|
|
), |
601 |
|
|
"windows7" => array( |
602 |
|
|
"icon" => "windows7", |
603 |
|
|
"title" => "Windows 7", |
604 |
|
|
"rule" => array( |
605 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?6\.1" => "" |
606 |
|
|
), |
607 |
|
|
"uri" => "http://www.microsoft.com/windows/windows-7/" |
608 |
|
|
), |
609 |
|
|
"windowsrt" => array( |
610 |
|
|
"icon" => "windows8", |
611 |
|
|
"title" => "Windows RT", |
612 |
|
|
"rule" => array( |
613 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?6\.2; ARM" => "", |
614 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?6\.3; ARM" => "" |
615 |
|
|
), |
616 |
|
|
"uri" => "http://www.microsoft.com/windows/" |
617 |
|
|
), |
618 |
|
|
"windows8" => array( |
619 |
|
|
"icon" => "windows8", |
620 |
|
|
"title" => "Windows 8", |
621 |
|
|
"rule" => array( |
622 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?6\.2" => "", |
623 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?6\.3" => "" |
624 |
|
|
), |
625 |
|
|
"uri" => "http://www.microsoft.com/windows/" |
626 |
|
|
), |
627 |
matthys |
303 |
"windows10" => array( |
628 |
|
|
"icon" => "windows8", |
629 |
|
|
"title" => "Windows 10", |
630 |
|
|
"rule" => array( |
631 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?6\.4" => "" |
632 |
|
|
), |
633 |
|
|
"uri" => "http://www.microsoft.com/windows/" |
634 |
|
|
), |
635 |
joku |
63 |
"windowsmc" => array( |
636 |
|
|
"icon" => "windowsxp", |
637 |
|
|
"title" => "Windows Media Center", |
638 |
|
|
"rule" => array( |
639 |
|
|
"Media Center PC[ /]([0-9.]{1,10})" => "\\1" |
640 |
|
|
), |
641 |
|
|
"uri" => "http://www.microsoft.com/windowsxp/mediacenter/" |
642 |
|
|
), |
643 |
|
|
"windowsxp" => array( |
644 |
|
|
"icon" => "windowsxp", |
645 |
|
|
"title" => "Windows XP", |
646 |
|
|
"rule" => array( |
647 |
|
|
"Windows XP" => "", |
648 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?5\.1" => "" |
649 |
|
|
), |
650 |
|
|
"uri" => "http://www.microsoft.com/windowsxp/" |
651 |
|
|
), |
652 |
|
|
"zenwalk" => array( |
653 |
|
|
"icon" => "zenwalk", |
654 |
|
|
"title" => "Zenwalk", |
655 |
|
|
"rule" => array( |
656 |
|
|
"Zenwalk GNU Linux" => "" |
657 |
|
|
), |
658 |
|
|
"uri" => "http://www.zenwalk.org/" |
659 |
|
|
), |
660 |
|
|
// Catch up for the originals, they got to stay in that order. |
661 |
|
|
"debian" => array( |
662 |
|
|
"icon" => "debian", |
663 |
|
|
"title" => "Debian Linux", |
664 |
|
|
"rule" => array( |
665 |
|
|
"debian" => "" |
666 |
|
|
), |
667 |
|
|
"uri" => "http://www.debian.org/" |
668 |
|
|
), |
669 |
|
|
"beos" => array( |
670 |
|
|
"icon" => "be", |
671 |
|
|
"title" => "BeOS", |
672 |
|
|
"rule" => array( |
673 |
|
|
"beos[ a-z]*([0-9.]{1,10})" => "\\1", |
674 |
|
|
"beos" => "" |
675 |
|
|
), |
676 |
|
|
"uri" => "" |
677 |
|
|
), |
678 |
|
|
"bsd" => array( |
679 |
|
|
"icon" => "bsd", |
680 |
|
|
"title" => "BSD", |
681 |
|
|
"rule" => array( |
682 |
|
|
"bsd" => "" |
683 |
|
|
), |
684 |
|
|
"uri" => "" |
685 |
|
|
), |
686 |
|
|
"linux" => array( |
687 |
|
|
"icon" => "linux", |
688 |
|
|
"title" => "Linux", |
689 |
|
|
"rule" => array( |
690 |
|
|
"linux[ /\-]([a-z0-9._]{1,10})" => "\\1", |
691 |
|
|
"linux" => "" |
692 |
|
|
), |
693 |
|
|
"uri" => "http://www.kernel.org/" |
694 |
|
|
), |
695 |
|
|
"os2" => array( |
696 |
|
|
"icon" => "os2", |
697 |
|
|
"title" => "OS/2 Warp", |
698 |
|
|
"rule" => array( |
699 |
|
|
"warp[ /]?([0-9.]{1,10})" => "\\1", |
700 |
|
|
"os[ /]?2" => "" |
701 |
|
|
), |
702 |
|
|
"uri" => "" |
703 |
|
|
), |
704 |
|
|
"mac" => array( |
705 |
|
|
"icon" => "mac", |
706 |
|
|
"title" => "MacOS", |
707 |
|
|
"rule" => array( |
708 |
|
|
"mac[^hk]" => "" |
709 |
|
|
), |
710 |
|
|
"uri" => "" |
711 |
|
|
), |
712 |
|
|
"windowsnt" => array( |
713 |
|
|
"icon" => "windows", |
714 |
|
|
"title" => "Windows NT", |
715 |
|
|
"rule" => array( |
716 |
|
|
"wi(n|ndows)[ \-]?nt[ /]?([0-4][0-9.]{1,10})" => "\\2", |
717 |
|
|
"wi(n|ndows)[ \-][ /]?([0-4][0-9.]{1,10})" => "\\2", |
718 |
|
|
"wi(n|ndows)[ \-]?nt" => "" |
719 |
|
|
), |
720 |
|
|
"uri" => "http://www.microsoft.com/windowsnt/" |
721 |
|
|
), |
722 |
|
|
"windows98" => array( |
723 |
|
|
"icon" => "windows", |
724 |
|
|
"title" => "Windows 98", |
725 |
|
|
"rule" => array( |
726 |
|
|
"wi(n|ndows)[ \-]?98" => "" |
727 |
|
|
), |
728 |
|
|
"uri" => "http://www.microsoft.com/windows98/" |
729 |
|
|
), |
730 |
|
|
"windows" => array( |
731 |
|
|
"icon" => "windows", |
732 |
|
|
"title" => "Windows", |
733 |
|
|
"rule" => array( |
734 |
|
|
"wi(n|n32|n64|ndows)" => "" |
735 |
|
|
), |
736 |
|
|
"uri" => "" |
737 |
|
|
), |
738 |
|
|
"java" => array( |
739 |
|
|
"icon" => "java", |
740 |
|
|
"title" => "Java Platform Micro Edition", |
741 |
|
|
"rule" => array( |
742 |
|
|
"J2ME/MIDP" => "" |
743 |
|
|
), |
744 |
|
|
"uri" => "http://java.sun.com/" |
745 |
|
|
), |
746 |
|
|
"mobile" => array( |
747 |
|
|
"icon" => "mobile", |
748 |
|
|
"title" => "Mobile", |
749 |
|
|
"rule" => array( |
750 |
|
|
"LG[ /]([0-9A-Z]{1,10})" => "", |
751 |
|
|
"MOT[ /\-]([0-9A-Z]{1,10})" => "", |
752 |
|
|
"SonyEricsson([0-9A-Z]{1,10})" => "", |
753 |
|
|
"SIE([0-9A-Z]{1,10})" => "", |
754 |
|
|
"Nokia([0-9A-Z]{1,10})" => "", |
755 |
|
|
"KDDI-([0-9A-Z]{1,10})" => "", |
756 |
|
|
"^[A-Z]([0-9]{1,3}) " => "", |
757 |
|
|
"Configuration[ /]CLDC([0-9.]{1,10})" => "\\1", |
758 |
|
|
"MIDP" => "", |
759 |
|
|
"UP\.(Browser|Link)" => "", |
760 |
joku |
256 |
"ibisBrowser" => "", |
761 |
|
|
"Mobile" => "" |
762 |
joku |
63 |
), |
763 |
|
|
"uri" => "" |
764 |
|
|
), |
765 |
|
|
// Things we don't know by now |
766 |
|
|
"other" => array( |
767 |
|
|
"icon" => "question", |
768 |
|
|
"title" => "other", |
769 |
|
|
"rule" => array( |
770 |
|
|
".*" => "" |
771 |
|
|
) |
772 |
|
|
) |
773 |
|
|
); |
774 |
joku |
256 |
?> |