You are browsing the old Contao 3 extension repository. Contao 3 is no longer maintained as of June 2019! You can find the Contao 4 extensions on extensions.contao.org.

Extensions > browserdetection

PHP class for browser detection

[browserdetection]

Implements a PHP class for simple browser detection

With Contao 2.10 a similar function was added to the Contao core which makes this extension obsolete. From Contao 2.10 a message will be displayed with this information.

Impelemnts the class from Browser.php by Chris Schlund (see http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/) as PHP class inside of Contao. This extension is for other developers who like to have an easy browser detection. Comming versions of Browser.php will be made available as update.

Usage in extension:

After $this->import('Browser'); you can use the following function:

$this->Browser->getBrowser() (->see below for return values)
$this->Browser->getVersion()
$this->Browser->getPlatform() (->see below for return values)
$this->Browser->getAolVersion()
$this->Browser->isAol()
$this->Browser->isMobile()
$this->Browser->isRobot()

Return Values/Detected systems:

Webbrowser: 'unknown', 'Opera', 'Opera Mini', 'WebTV', 'Internet Explorer', 'Pocket Internet Explorer', 'Konqueror', 'iCab', 'OmniWeb', 'Firebird', 'Firefox', 'Iceweasel', 'Shiretoko', 'Mozilla', 'Amaya', 'Lynx', 'Safari', 'iPhone', 'iPod', 'iPad', 'Chrome', 'Android', 'GoogleBot', 'Yahoo! Slurp', 'W3C Validator', 'BlackBerry', 'IceCat', 'Nokia S60 OSS Browser', 'Nokia Browser', 'MSN Browser', 'MSN Bot'
Platforms: 'unknown', 'Windows', 'Windows CE', 'Apple', 'Linux', 'OS/2', 'BeOS', 'iPhone', 'iPod', 'iPad', 'BlackBerry', 'Nokia', 'FreeBSD', 'OpenBSD', 'NetBSD', 'SunOS', 'OpenSolaris', 'Android'

Version
1.9.2
Type
Free
Release date
15.08.2011
Category
Other
License
GPL2 or any later version
Copyright
© 2011 Jan Theofel, 2010 ETES GmbH, PHP Klasse 2008-2010 Chris Schuld
Author
Jan Theofel (jan.theofel) http://www.theofel.com/
Release notes and change log for 1.9.2
Other versions

- Added message for Contao 2.10 and above

Release functionality
 
Total functionality
0.00
Release usability
 
Total usability
0.00
Release quality
 
Total quality
0.00
Release rating
 
Total rating
0.00 (0 votes)
Release downloads
828
Total downloads
1060
Release installs
1004
Total installs
2026
Release updates
153
Total updates
200
Dependencies of this extension
Other extensions depending on this one
Name
Version from
Version to
Contao
2.8.0
2.11.2
Name
Version from
Version to
1.0.0-RC1
1.2.1
1.3.0
1.3.0
1.0.0-beta1
1.0.0-beta1
0.9.0
0.9.1
1.3.0
1.3.1