"Fossies" - the Fresh Open Source Software Archive

Member "contao-4.4.48/core-bundle/src/Resources/contao/config/agents.php" (2 Apr 2020, 3382 Bytes) of package /linux/www/contao-4.4.48.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "agents.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 /*
    4  * This file is part of Contao.
    5  *
    6  * (c) Leo Feyer
    7  *
    8  * @license LGPL-3.0-or-later
    9  */
   10 
   11 // Operating systems (check Windows CE before Windows and Android before Linux!)
   12 $GLOBALS['TL_CONFIG']['os'] = array
   13 (
   14     'Macintosh'     => array('os'=>'mac',        'mobile'=>false),
   15     'Windows CE'    => array('os'=>'win-ce',     'mobile'=>true),
   16     'Windows Phone' => array('os'=>'win-ce',     'mobile'=>true),
   17     'Windows'       => array('os'=>'win',        'mobile'=>false),
   18     'iPad'          => array('os'=>'ios',        'mobile'=>false),
   19     'iPhone'        => array('os'=>'ios',        'mobile'=>true),
   20     'iPod'          => array('os'=>'ios',        'mobile'=>true),
   21     'Android'       => array('os'=>'android',    'mobile'=>true),
   22     'BB10'          => array('os'=>'blackberry', 'mobile'=>true),
   23     'Blackberry'    => array('os'=>'blackberry', 'mobile'=>true),
   24     'Symbian'       => array('os'=>'symbian',    'mobile'=>true),
   25     'WebOS'         => array('os'=>'webos',      'mobile'=>true),
   26     'Linux'         => array('os'=>'unix',       'mobile'=>false),
   27     'FreeBSD'       => array('os'=>'unix',       'mobile'=>false),
   28     'OpenBSD'       => array('os'=>'unix',       'mobile'=>false),
   29     'NetBSD'        => array('os'=>'unix',       'mobile'=>false),
   30 );
   31 
   32 // Browsers (check OmniWeb and Silk before Safari and Opera Mini/Mobi before Opera!)
   33 $GLOBALS['TL_CONFIG']['browser'] = array
   34 (
   35     'MSIE'       => array('browser'=>'ie',           'shorty'=>'ie', 'engine'=>'trident',  'version'=>'/^.*MSIE (\d+(\.\d+)*).*$/'),
   36     'Trident'    => array('browser'=>'ie',           'shorty'=>'ie', 'engine'=>'trident',  'version'=>'/^.*Trident\/\d+\.\d+; rv:(\d+(\.\d+)*).*$/'),
   37     'Edge'       => array('browser'=>'edge',         'shorty'=>'ed', 'engine'=>'edgehtml', 'version'=>'/^.*Edge\/(\d+(\.\d+)*).*$/'),
   38     'Firefox'    => array('browser'=>'firefox',      'shorty'=>'fx', 'engine'=>'gecko',    'version'=>'/^.*Firefox\/(\d+(\.\d+)*).*$/'),
   39     'Chrome'     => array('browser'=>'chrome',       'shorty'=>'ch', 'engine'=>'blink',    'version'=>'/^.*Chrome\/(\d+(\.\d+)*).*$/'),
   40     'CriOS'      => array('browser'=>'chrome',       'shorty'=>'ch', 'engine'=>'webkit',   'version'=>'/^.*CriOS\/(\d+(\.\d+)*).*$/'),
   41     'OmniWeb'    => array('browser'=>'omniweb',      'shorty'=>'ow', 'engine'=>'webkit',   'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
   42     'Silk'       => array('browser'=>'silk',         'shorty'=>'si', 'engine'=>'blink',    'version'=>'/^.*Silk\/(\d+(\.\d+)*).*$/'),
   43     'Safari'     => array('browser'=>'safari',       'shorty'=>'sf', 'engine'=>'webkit',   'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
   44     'Opera Mini' => array('browser'=>'opera-mini',   'shorty'=>'oi', 'engine'=>'presto',   'version'=>'/^.*Opera Mini\/(\d+(\.\d+)*).*$/'),
   45     'Opera Mobi' => array('browser'=>'opera-mobile', 'shorty'=>'om', 'engine'=>'presto',   'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
   46     'Opera'      => array('browser'=>'opera',        'shorty'=>'op', 'engine'=>'blink',    'version'=>'/^.*Version\/(\d+(\.\d+)*).*$/'),
   47     'IEMobile'   => array('browser'=>'ie-mobile',    'shorty'=>'im', 'engine'=>'trident',  'version'=>'/^.*IEMobile (\d+(\.\d+)*).*$/'),
   48     'Camino'     => array('browser'=>'camino',       'shorty'=>'ca', 'engine'=>'gecko',    'version'=>'/^.*Camino\/(\d+(\.\d+)*).*$/'),
   49     'Konqueror'  => array('browser'=>'konqueror',    'shorty'=>'ko', 'engine'=>'webkit',   'version'=>'/^.*Konqueror\/(\d+(\.\d+)*).*$/')
   50 );