-
Notifications
You must be signed in to change notification settings - Fork 6
/
atkbrowsertools.inc
766 lines (691 loc) · 20.8 KB
/
atkbrowsertools.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
<?php
/**
* This file is part of the Achievo ATK distribution.
* Detailed copyright and licensing information can be found
* in the doc/COPYRIGHT and doc/LICENSE files which should be
* included in the distribution.
*
* @package atk
* @subpackage utils
*
* @copyright (c)2000-2004 Ibuildings.nl BV
* @license http://www.achievo.org/atk/licensing ATK Open Source License
*
* @version $Revision$
* $Id$
*/
/**
* Utility for browser detection.
*
* @author Wim Kosten <[email protected]>
* @author Ivo Jansch <[email protected]>
* @package atk
* @subpackage utils
* @todo Move this class to the utils subpackage dir.
*/
class browserInfo
{
var $ua = "";
var $full_version = "";
var $browser = "unknown";
var $major = 0;
var $minor = 0;
var $os = "";
var $platform = "";
var $short = "";
var $brName = "";
var $osName = "";
var $hasGui = 0;
var $spider = 0;
var $family = "";
var $gecko = 0;
// constructor function
function browserInfo($ua="")
{
// set ua
if (trim($ua) == "")
{
$this->ua = $_SERVER["HTTP_USER_AGENT"];
}
else
{
$this->ua = $ua;
}
// check the browser and set properties
$this->detectAgent();
// detect platform and OS
$this->detectOS();
// set the family
if (eregi("gecko", $this->ua))
{
$this->gecko = 1;
}
switch (strtolower($this->browser))
{
case "msie":
if ($this->major < 4)
{
$this->family = "ie3";
}
else if ($this->major >= 5)
{
$this->family = "ie5up";
}
else
{
$this->family = "ie4up";
}
break;
case "opera":
$this->family = "opera";
break;
case "netscape":
if ($this->major < 6)
{
$this->family = "nn4";
}
else
{
$this->family = "nn6";
}
break;
default:
if ($this->gecko == 1)
{
$this->family = "gecko";
}
else
{
$this->family = "unknown";
}
}
$this->short = $this->browser." ".$this->full_version;
}
// actual detection
function detectAgent()
{
//MSIE
$info=array();
if (eregi( 'MSIE ([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info) || eregi( 'Microsoft Internet Explorer ([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'MSIE';
$this->brName = "MS Internet Explorer";
$this->hasGui = 1;
// check for Opera faking MSIE
if (eregi( 'Opera ([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info) || eregi( 'Opera/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Opera';
$this->brName = "Opera";
$this->hasGui = 1;
}
// check for WebTV
if (eregi( 'WebTV/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'WebTV';
$this->brName = "WebTV";
$this->hasGui = 1;
}
// check for AOL
if (eregi( 'AOL ([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$ver = $this->full_version;
$this->full_version = $info[1];
$this->browser = 'AOL (MSIE '.$ver.')';
$this->brName = "AOL";
$this->hasGui = 1;
}
}
// Opera
if (eregi( 'Opera ([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info) || eregi( 'Opera/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Opera';
$this->brName = "Opera";
$this->hasGui = 1;
}
// iCab
elseif (eregi( 'iCab ([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info) || eregi( 'iCab/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'iCab';
$this->brName = "iCAB";
$this->hasGui = 1;
}
// Lynx
elseif (eregi( 'Lynx ([0-9].[0-9a-zA-Z.]{1,9})',$this->ua,$info) || eregi( 'Lynx/([0-9].[0-9a-zA-Z.]{1,9})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Lynx';
$this->platform = 'Unix';
$this->brName = "Lynx (textbrowser)";
$this->hasGui = 0;
}
// Wget
elseif (eregi( 'Wget/([0-9].[0-9a-zA-Z.]{1,9})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Wget';
$this->platform = 'Unix';
$this->brName = "Wget";
$this->hasGui = 0;
}
// Snoopy (PHP HTTP stuff)
elseif (eregi( 'Snoopy v([0-9].[0-9a-zA-Z.]{1,9})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Snoopy';
$this->brName = "Snoopy";
$this->hasGui = 0;
}
// GetRight
elseif (eregi( 'GetRight/([0-9].[0-9a-zA-Z.]{1,9})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'GetRight';
$this->platform = 'Win9xNT';
$this->brName = "GetRight";
$this->hasGui = 0;
}
// KDE Konqueror
elseif (eregi( 'Konqueror ([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info) || eregi( 'Konqueror/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Konqueror';
$this->platform = 'Unix';
$this->brName = "KDE Konqueror";
$this->hasGui = 1;
}
// Netscape 6
elseif (eregi( 'Netscape6/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Netscape';
$this->brName = "Netscape";
$this->hasGui = 1;
}
// NCSA Mosaic
elseif (eregi( 'nsca mosaic ([0-9].[0-9a-zA-Z]{1,4})',strtolower($this->ua),$info))
{
$this->full_version = $info[1];
$this->browser = 'NSCA Mosaic';
$this->brName = "NSCA Mosaic";
$this->hasGui = 1;
}
// Prodigy Classic
elseif (eregi( 'prodigy-wb/([0-9].[0-9a-zA-Z]{1,4})',strtolower($this->ua),$info))
{
$this->full_version = $info[1];
$this->browser = 'Prodigy Classic';
$this->brName = $this->browser;
$this->hasGui = 1;
}
// Nokia Communicator
elseif (eregi( 'Nokia-Communicator-WWW-Browser ([0-9].[0-9a-zA-Z]{1,4})',strtolower($this->ua),$info))
{
$this->full_version = $info[1];
$this->browser = 'Nokia Communicator';
$this->brName = $this->browser;
$this->hasGui = 0;
}
//
// CRAWLERS, SPIDERS ETC.
//
// Inktomi
elseif (eregi( 'Slurp/',$this->ua,$info))
{
$this->full_version = 0;
$this->browser = 'Inktomi Web Robot';
$this->brName = "Inktomi Web Robot";
$this->hasGui = 0;
$this->spider = 1;
}
// Google
elseif (eregi( 'Googlebot/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Google WebCrawler';
$this->brName = "Google WebCrawler";
$this->hasGui = 0;
$this->spider = 1;
}
// ASPSeek
elseif (eregi( 'ASPSeek/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'ASPSeek';
$this->brName = "ASPSeek";
$this->hasGui = 0;
$this->spider = 1;
}
// ArchitextSpider
elseif (eregi( 'ArchitextSpider',$this->ua,$info))
{
$this->full_version = 0;
$this->browser = 'ArchitextSpider';
$this->brName = "ArchitextSpider";
$this->hasGui = 0;
$this->spider = 1;
}
// Lycos spider
elseif (eregi( 'Lycos_Spider',$this->ua,$info))
{
$this->full_version = 0;
$this->browser = 'Lycos Spider';
$this->brName = "Lycos Spider";
$this->hasGui = 0;
$this->spider = 1;
}
// Offline Explorer
elseif (eregi( 'Offline Explorer/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Offline Explorer';
$this->brName = "Offline Explorer";
$this->hasGui = 0;
$this->spider = 1;
}
// Openbot/3.0
elseif (eregi( 'Openbot/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Openfind Data Gatherer';
$this->brName = "Openfind Data Gatherer";
$this->hasGui = 0;
$this->spider = 1;
}
// Scooter
elseif (eregi( 'Scooter-([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info) || eregi( 'Scooter-',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Scooter';
$this->brName = "Scooter";
$this->hasGui = 0;
$this->spider = 1;
}
// Sqworm/2.9.70-BETA
elseif (eregi( 'Sqworm/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'Sqworm';
$this->brName = "Sqworm";
$this->hasGui = 0;
$this->spider = 1;
}
// True_Robot/1.0
elseif (eregi( 'True_Robot/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'True_Robot';
$this->brName = "True Robot";
$this->hasGui = 0;
$this->spider = 1;
}
// libwww-perl/5.52
elseif (eregi( 'libwww-perl/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'libwww-perl';
$this->brName = "libwww-perl";
$this->hasGui = 0;
$this->spider = 1;
}
// psbot/0.1
elseif (eregi( 'psbot/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
$this->full_version = $info[1];
$this->browser = 'picsearch crawler';
$this->brName = "PicSearch Crawler";
$this->hasGui = 0;
$this->spider = 1;
}
// if we still haven't detected something
// it might be just an old Netscape (pre Gecko)
if ($this->browser == "unknown")
{
// if contains Mozilla then it is Netscape or just the Mozilla browser
if (eregi( 'Mozilla/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$info))
{
// if it also contains Gecko/ then it's a new Mozilla
$dummy=array();
if (eregi( 'Gecko/([0-9].[0-9a-zA-Z]{1,4})',$this->ua,$dummy))
{
$info_1=array();
eregi('rv:([0-9].[0-9a-zA-Z].[0-9]{1,4})', $this->ua, $info_1);
$this->full_version = $info_1[1];
$this->browser = 'Mozilla';
$this->brName = "Mozilla";
$this->hasGui = 1;
}
else
{
$this->full_version = $info[1];
$this->browser = 'Netscape';
$this->brName = "Netscape";
$this->hasGui = 1;
}
}
}
// now extract version
if($this->full_version > 0)
{
$pos = strpos($this->full_version,".");
if ($pos > 0)
{
$this->major = substr($this->full_version, 0, $pos);
$this->minor = substr($this->full_version, $pos+1, strlen($this->full_version));
}
else $this->major = $this->full_version;
}
}
/**
* Detect wether the user is browsing with a PDA
* Returns true if he is, an array if he is using Windows CE
* and an array with ["width"] and ["height"] if those variables are known
* @return mixed wether or not the user is using a PDA and size of the screen if it is passed along
*/
function detectPDA()
{
$browser=substr(trim($_SERVER["HTTP_USER_AGENT"]),0,4);
if ($browser=="Noki" || // Nokia phones and emulators
$browser=="Eric" || // Ericsson WAP phones and emulators
$browser=="WapI" || // Ericsson WapIDE 2.0
$browser=="MC21" || // Ericsson MC218
$browser=="AUR " || // Ericsson R320
$browser=="R380" || // Ericsson R380
$browser=="UP.B" || // UP.Browser
$browser=="WinW" || // WinWAP browser
$browser=="UPG1" || // UP.SDK 4.0
$browser=="upsi" || // another kind of UP.Browser ??
$browser=="QWAP" || // unknown QWAPPER browser
$browser=="Jigs" || // unknown JigSaw browser
$browser=="Java" || // unknown Java based browser
$browser=="Alca" || // unknown Alcatel-BE3 browser (UP based?)
$browser=="MITS" || // unknown Mitsubishi browser
$browser=="MOT-" || // unknown browser (UP based?)
$browser=="My S" || // unknown Ericsson devkit browser ?
$browser=="WAPJ" || // Virtual WAPJAG www.wapjag.de
$browser=="fetc" || // fetchpage.cgi Perl script from www.wapcab.de
$browser=="ALAV" || // yet another unknown UP based browser ?
$browser=="Wapa") // another unknown browser ("Wapalyzer"?)
return true;
else if (strstr($_SERVER["HTTP_USER_AGENT"],"Blazer")) // Palm's browser
{
return true;
}
else if (strstr($_SERVER["HTTP_USER_AGENT"],"Windows CE"))
{
$extrainfo = substr($_SERVER["HTTP_USER_AGENT"], strpos($_SERVER["HTTP_USER_AGENT"],"("));
$seperated = explode(";",substr($extrainfo,0,strlen($extrainfo)-1));
foreach ($seperated as $key => $info)
{
// We trim the whitespaces
$seperated[$key]= $info = trim($info);
// And check for size
$explodedinfo = explode("x",$info);
$size = array();
if ($explodedinfo[0] && is_numeric($explodedinfo[0]) && $explodedinfo[1] && is_numeric($explodedinfo[1]))
{
// We've got browser size
$size["width"] = $explodedinfo[0];
$size["height"] = $explodedinfo[1];
}
}
return $size;
}
else
return false;
}
function detectOS()
{
// Windows 3.x
if( eregi('Win16',$this->ua) || eregi('windows 3.1',$this->ua) || eregi('windows 16-bit',$this->ua) || eregi('16bit',$this->ua))
{
$this->platform = "Win16";
$this->os = "Win31";
$this->osname = "Windows 3.x";
}
// Windows 95
if(eregi('Win95',$this->ua) || eregi('windows 95',$this->ua))
{
$this->platform = "Win32";
$this->os = "Win95";
$this->osname = "Windows 95";
}
// Windows 98
elseif(eregi('Win98',$this->ua) || eregi('windows 98',$this->ua))
{
$this->platform = "Win32";
$this->os = "Win98";
$this->osname = "Windows 98";
}
// Windows NT
elseif(eregi('WinNT',$this->ua) || eregi('windows NT',$this->ua))
{
$this->platform = "Win32";
$this->os = "WinNT";
$this->osname = "Windows NT";
if(eregi('NT 5.0',$this->ua))
{
$this->platform = "Win32";
$this->os = "Win2000";
$this->osname = "Windows 2000";
}
if(eregi('NT 5.1',$this->ua))
{
$this->platform = "Win32";
$this->os = "WinXP";
$this->osname = "Windows XP";
}
}
// Windows ME
elseif(eregi('win 9x 4.90',$this->ua))
{
$this->platform = "Win32";
$this->os = "Win ME";
$this->osname = "Windows Millenium";
}
// Other Win 32
elseif(eregi('Win',$this->ua))
{
$this->platform = "Win32";
$this->os = "Win9xNT";
}
// Check for os/2
if( eregi('os/2',$this->ua) || eregi('ibm-webexplorer',$this->ua))
{
$this->platform = "OS/2";
$this->os = "OS/2";
}
// Check for Mac 68000
if( eregi('68k',$this->ua) || eregi('68000',$this->ua))
{
$this->platform = "Mac";
$this->os = "Mac68k";
}
// Check for Mac PowerPC
if( eregi('ppc',$this->ua) || eregi('powerpc',$this->ua))
{
$this->platform = "Mac";
$this->os = "MacPPC";
}
// SunOS (All versions)
if(eregi('sunos',$this->ua))
{
$this->platform = "Unix";
$this->os = "sun";
}
// SUN versions
if(eregi('sunos 4',$this->ua))
{
$this->platform = "Unix";
$this->os = "SUN 4";
}
elseif(eregi('sunos 5',$this->ua))
{
$this->platform = "Unix";
$this->os = "SUN 5";
}
elseif(eregi('i86',$this->ua))
{
$this->platform = "Unix";
$this->os = "SUN i86";
}
// Irix
if(eregi('irix',$this->ua))
{
$this->platform = "Unix";
$this->os = "Irix";
}
if(eregi('irix 6',$this->ua))
{
$this->platform = "Unix";
$this->os = "Irix 6";
}
elseif(eregi('irix 5',$this->ua))
{
$this->platform = "Unix";
$this->os = "Irix 5";
}
// HP-UX
if(eregi('hp-ux',$this->ua))
{
$this->platform = "Unix";
$this->os = "HP UX";
}
if(eregi('hp-ux',$this->ua) && ereg('10.',$this->ua))
{
$this->platform = "Unix";
$this->os = "HP UX 10.x";
}
elseif(eregi('hp-ux',$this->ua) && ereg('09.',$this->ua))
{
$this->platform = "Unix";
$this->os = "HP UX 9.x";
}
//AIX
if(eregi('aix',$this->ua))
{
$this->platform = "Unix";
$this->os = "IBM AIX";
}
if(eregi('aix1',$this->ua))
{
$this->platform = "Unix";
$this->os = "IBM AIX 1.x";
}
elseif(eregi('aix2',$this->ua))
{
$this->platform = "Unix";
$this->os = "IBM AIX 2.x";
}
elseif(eregi('aix3',$this->ua))
{
$this->platform = "Unix";
$this->os = "IBM AIX 3.x";
}
elseif(eregi('aix4',$this->ua))
{
$this->platform = "Unix";
$this->os = "IBM AIX 4.x";
}
// Linux
if(eregi('inux',$this->ua))
{
$this->platform = "Unix";
$this->os = "Linux";
}
// Unixware
if(eregi('unix_system_v',$this->ua))
{
$this->platform = "Unix";
$this->os = "UnixWare";
}
// mpras
if(eregi('ncr',$this->ua))
{
$this->platform = "Unix";
$this->os = "NCR mpras";
}
// Reliant
if(eregi('reliantunix',$this->ua))
{
$this->platform = "Unix";
$this->os = "Reliant";
}
// DEC
if(eregi('dec',$this->ua) || eregi('osfl',$this->ua) || eregi('alphaserver',$this->ua) || eregi('ultrix',$this->ua) || eregi('alphastation',$this->ua))
{
$this->platform = "Unix";
$this->os = "DEC";
if (eregi('ultrix',$this->ua))
{
$this->os = "DEC Ultrix";
}
}
// Sinix
if(eregi('sinix',$this->ua))
{
$this->platform = "Unix";
$this->os = "Sinix";
}
// BSD
if(eregi('bsd',$this->ua))
{
$this->platform = "Unix";
$this->os = "BSD";
}
// FreeBSD
if(eregi('freebsd',$this->ua))
{
$this->platform = "Unix";
$this->os = "FreeBSD";
}
// VMS
if(eregi('vax',$this->ua) || eregi('openvms',$this->ua))
{
$this->platform = "Unix";
$this->os = "VAX VMS";
}
// SCO
if(eregi('sco ',$this->ua) || eregi('unix_sv',$this->ua))
{
$this->platform = "Unix";
$this->os = "SCO";
}
}
}
function getBrowserInfo($useragent="")
{
$tmp = new browserInfo($useragent);
return array
(
"ua"=>$tmp->ua,
"version"=>$tmp->full_version,
"browser"=>$tmp->browser,
"major"=>$tmp->major,
"minor"=>$tmp->minor,
"os"=>$tmp->os,
"platform"=>$tmp->platform,
"short"=>$tmp->short,
"brName"=>$tmp->brName,
"osName"=>$tmp->osName,
"hasGui"=>$tmp->hasGui,
"spider"=>$tmp->spider,
"family"=>$tmp->family,
"gecko"=>$tmp->gecko
);
}
/**
* This function can be used to determine if we are using ie specific extensions.
* The function checks the value of the $config_enable_ie_extensions variable
* and also the browser that the user is using.
*/
function ieExtensions()
{
$browser = getBrowserInfo();
return (atkconfig("enable_ie_extensions") && $browser["family"]=="ie5up");
}
?>