Ergebnis : var_dump( $GLOBALS['TL_CONFIG']['os'] );
Code:
["Macintosh"]=>
array(2) {
["os"]=>
string(3) "mac"
["mobile"]=>
bool(false)
}
["Windows CE"]=>
array(2) {
["os"]=>
string(6) "win-ce"
["mobile"]=>
bool(true)
}
["Windows Phone"]=>
array(2) {
["os"]=>
string(6) "win-ce"
["mobile"]=>
bool(true)
}
["Windows"]=>
array(2) {
["os"]=>
string(3) "win"
["mobile"]=>
bool(false)
}
["iPad"]=>
array(2) {
["os"]=>
string(3) "ios"
["mobile"]=>
bool(true)
}
["iPhone"]=>
array(2) {
["os"]=>
string(3) "ios"
["mobile"]=>
bool(true)
}
["iPod"]=>
array(2) {
["os"]=>
string(3) "ios"
["mobile"]=>
bool(true)
}
["Android"]=>
array(2) {
["os"]=>
string(7) "android"
["mobile"]=>
bool(true)
}
["BB10"]=>
array(2) {
["os"]=>
string(10) "blackberry"
["mobile"]=>
bool(true)
}
["Blackberry"]=>
array(2) {
["os"]=>
string(10) "blackberry"
["mobile"]=>
bool(true)
}
["Symbian"]=>
array(2) {
["os"]=>
string(7) "symbian"
["mobile"]=>
bool(true)
}
["WebOS"]=>
array(2) {
["os"]=>
string(5) "webos"
["mobile"]=>
bool(true)
}
["Linux"]=>
array(2) {
["os"]=>
string(4) "unix"
["mobile"]=>
bool(false)
}
["FreeBSD"]=>
array(2) {
["os"]=>
string(4) "unix"
["mobile"]=>
bool(false)
}
["OpenBSD"]=>
array(2) {
["os"]=>
string(4) "unix"
["mobile"]=>
bool(false)
}
["NetBSD"]=>
array(2) {
["os"]=>
string(4) "unix"
["mobile"]=>
bool(false)
}
}
agents.php
Code:
$GLOBALS['TL_CONFIG']['os'] = array
(
'Macintosh' => array('os'=>'mac', 'mobile'=>false),
'Windows CE' => array('os'=>'win-ce', 'mobile'=>true),
'Windows Phone' => array('os'=>'win-ce', 'mobile'=>true),
'Windows' => array('os'=>'win', 'mobile'=>false),
'iPad' => array('os'=>'ios', 'mobile'=>true),
'iPhone' => array('os'=>'ios', 'mobile'=>true),
'iPod' => array('os'=>'ios', 'mobile'=>true),
'Android' => array('os'=>'android', 'mobile'=>true),
'BB10' => array('os'=>'blackberry', 'mobile'=>true),
'Blackberry' => array('os'=>'blackberry', 'mobile'=>true),
'Symbian' => array('os'=>'symbian', 'mobile'=>true),
'WebOS' => array('os'=>'webos', 'mobile'=>true),
'Linux' => array('os'=>'unix', 'mobile'=>false),
'FreeBSD' => array('os'=>'unix', 'mobile'=>false),
'OpenBSD' => array('os'=>'unix', 'mobile'=>false),
'NetBSD' => array('os'=>'unix', 'mobile'=>false),
);
Lesezeichen