Class phpSniff

Description

*****************************************************************************

*****************************************************************************

Located in /libraries/other/phpSniff/phpSniff.class.php (line 30)

phpSniff_core
   |
   --phpSniff
Variable Summary
Method Summary
 phpSniff phpSniff ([mixed $UA = ''], [mixed $settings = true])
Variables
mixed $_allow_masquerading = NULL (line 92)
mixed $_browsers = array(
'microsoft internet explorer' => 'IE',
'msie' => 'IE',
'netscape6' => 'NS',
'netscape' => 'NS',
'galeon' => 'GA',
'phoenix' => 'PX',
'mozilla firebird' => 'FB',
'firebird' => 'FB',
'chimera' => 'CH',
'camino' => 'CA',
'safari' => 'SF',
'k-meleon' => 'KM',
'mozilla' => 'MZ',
'opera' => 'OP',
'konqueror' => 'KQ',
'icab' => 'IC',
'lynx' => 'LX',
'links' => 'LI',
'ncsa mosaic' => 'MO',
'amaya' => 'AM',
'omniweb' => 'OW',
'hotjava' => 'HJ',
'browsex' => 'BX',
'amigavoyager' => 'AV',
'amiga-aweb' => 'AW',
'ibrowse' => 'IB'
)
(line 95)
mixed $_browser_features = array(
/**
* the following are true by default
* (see phpSniff.core.php $_feature_set array)
* browsers listed here will be set to false
**/
'html' => '',
'images' => 'LI,LX',
'frames' => 'LI,LX',
'tables' => '',
'java' => 'OP3,LI,LX,NS1,MO,IE1,IE2',
'plugins' => 'IE1,IE2,LI,LX',
/**
* the following are false by default
* (see phpSniff.core.php $_feature_set array)
* browsers listed here will be set to true
**/
'css2' => 'NS5+,IE5+,MZ,PX,FB,CH,CA,SF,GA,KQ3+,OP7+,KM',
'css1' => 'NS4+,IE4+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM',
'iframes' => 'IE3+,NS5+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM',
'xml' => 'IE5+,NS5+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM',
'dom' => 'IE5+,NS5+,MZ,PX,FB,CH,CA,SF,GA,KQ,OP7+,KM',
'hdml' => '',
'wml' => ''
)
(line 134)
mixed $_browser_quirks = array(
'must_cache_forms' => 'NS,MZ,FB,PX',
'avoid_popup_windows' => 'IE3,LI,LX',
'cache_ssl_downloads' => 'IE',
'break_disposition_header' => 'IE5.5',
'empty_file_input_value' => 'KQ',
'scrollbar_in_way' => 'IE6'
)
(line 160)
mixed $_check_cookies = NULL (line 90)
mixed $_default_language = 'en-us' (line 91)
mixed $_javascript_versions = array(
'1.5' => 'NS5+,MZ,PX,FB,GA,CH,CA,SF,KQ3+,KM', // browsers that support JavaScript 1.5
'1.4' => '',
'1.3' => 'NS4.05+,OP5+,IE5+',
'1.2' => 'NS4+,IE4+',
'1.1' => 'NS3+,OP,KQ',
'1.0' => 'NS2+,IE3+',
'0' => 'LI,LX,HJ'
)
(line 124)
mixed $_php_version = '' (line 93)
mixed $_temp_file_path = '/tmp/' (line 89)

Configuration

$_temp_file_path default : /tmp/ desc : directory writable by the server to store cookie check files. : trailing slash is needed. only used if you use the check cookie routine

$_check_cookies default : null desc : Allow for the script to redirect the browser in order : to check for cookies. In order for this to work, this : class must be instantiated before any headers are sent.

$_default_language default : en-us desc : language to report as if no languages are found

$_allow_masquerading default : null desc : Allow for browser to Masquerade as another. : (ie: Opera identifies as MSIE 5.0)

$_browsers desc : 2D Array of browsers we wish to search for : in key => value pairs. : key = browser to search for [as in HTTP_USER_AGENT] : value = value to return as 'browser' property

$_javascript_versions desc : 2D Array of javascript version supported by which browser : in key => value pairs. : key = javascript version : value = search parameter for browsers that support the : javascript version listed in the key (comma delimited) : note: the search parameters rely on the values : set in the $_browsers array

$_browser_features desc : 2D Array of browser features supported by which browser : in key => value pairs. : key = feature : value = search parameter for browsers that support the : feature listed in the key (comma delimited) : note: the search parameters rely on the values : set in the $_browsers array

$_browser_quirks desc : 2D Array of browser quirks present in which browser : in key => value pairs. : key = quirk : value = search parameter for browsers that feature the : quirk listed in the key (comma delimited) : note: the search parameters rely on the values : set in the $_browsers array

mixed $_version = '2.1.3' (line 31)

Inherited Variables

Inherited from phpSniff_core

phpSniff_core::$_browser_info
phpSniff_core::$_browser_search_regex
phpSniff_core::$_feature_set
phpSniff_core::$_get_languages_ran_once
phpSniff_core::$_language_search_regex
phpSniff_core::$_quirks
Methods

Documentation generated on Fri, 11 Feb 2005 18:13:54 +0000 by phpDocumentor 1.3.0RC3