Contao Open Source CMS > Enhance > Extension list > [browserdetection] PHP class for browser detection 1.9.2 stable

Extensions > browserdetection

[browserdetection] PHP class for browser detection

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'

Version1.9.2 stableTypeFree
Release date2011-08-15CategoryOther
LicenseGPL2 or any later version
Copyright© 2011 Jan Theofel, 2010 ETES GmbH, PHP Klasse 2008-2010 Chris Schuld
AuthorJan Theofel (jan.theofel) http://www.theofel.de/
Release notes and change log for 1.9.2 stableOther versions

- Added message for Contao 2.10 and above

1.9.0 stable
1.9.1 stable
Release downloads110Total downloads286
Release installs351Total installs1373
Release updates54Total updates87
Dependencies of this extensionOther extensions depending on this one
NameVersion fromVersion to
Contao2.8.0 stable2.11.2 stable
NameVersion fromVersion to
browsercss1.0.0 rc11.2.1 stable
hyphenation1.3.0 stable1.3.0 stable
mobilecore1.0.0 beta11.0.0 beta1
MobileSwitch0.9.0 stable0.9.1 stable
redirect1.3.0 stable1.3.1 stable
PackageSizeDate
Contao_browserdetection_10090029_7.zip120162012-04-05 01:30