start('main'); $timer->start('client1'); $sniffer_settings = array('check_cookies'=>$cc, 'default_language'=>$dl, 'allow_masquerading'=>$am); $client = new phpSniff($UA,$sniffer_settings); $timer->stop('client1'); $c1_bg = '#cccccc'; $c2_bg = '#ffffff'; $c3_bg = '#000000'; function makeSelectOption ($link,$text) { global $client; $o = ""; print $o; } function example ($search,$output) { global $c2_bg, $c1_bg, $client; ?> is($search)); } function language_is ($search) { global $client; example($search,$client->language_is($search)); } function browser_is ($search) { global $client; example($search,$client->browser_is($search)); } function has_feature ($feature) { global $client; example($feature,$client->has_feature($feature)); } function has_quirk ($quirk) { global $client; example($quirk,$client->has_quirk($quirk)); } ?> phpSniff <?php print $client->_version; ?> on SourceForge

Download | SourceForge Project Page | Index Source Code | phpSniff.core Source Code | phpSniff.class Source Code | CHANGE LOG

CURRENT BROWSER INFORMATION
',$client->_version, PHP_VERSION); ?>

_check_cookies) print 'checked'; ?> > Check For Cookies _allow_masquerading) print 'checked'; ?> > Allow Masquerading Default Language
Current Configuration
regex used to search HTTP_USER_AGENT string
preg_match_all("_browser_regex; ?>");
$_check_cookies _check_cookies ? 'true' : 'false'; ?>
$_default_language _default_language; ?>
$_allow_masquerading _allow_masquerading ? 'true' : 'false'; ?>
$client->property(property_name);
property_name return value
ua get_property('ua');?>
browser property('browser'); ?>
long_name property('long_name');?>
version property('version');?>
maj_ver property('maj_ver');?>
min_ver property('min_ver');?>
letter_ver property('letter_ver');?>
javascript property('javascript');?>
platform property('platform');?>
os property('os');?>
session cookies property('ss_cookies'))=='Unknown'?$ssc:($ssc?'true':'false');?>
stored cookies property('st_cookies'))=='Unknown'?$stc:($stc?'true':'false');?>
ip property('ip');?>
language property('language');?>
gecko property('gecko');?>
gecko_ver property('gecko_ver');?>
 
search_phrase return boolean
$client->has_feature(feature)
$client->has_quirk(quirk)
$client->browser_is(browser)
$client->language_is(language)
$client->is(search)

stop('main'); printf("

\n".
       "client instantiation time : %s\n" .
       "page execution time       : %s\n" .
       "
" , $timer->get_current('client1'), $timer->get_current('main')); ?>

_______________________________
'); print ('Copyleft 2001-2002 PHyX8 Studio

'); ?>