'; //print_r($_COOKIE); //echo ''; // initialize some vars $GET_VARS = isset($_GET) ? $_GET : $HTTP_GET_VARS; $POST_VARS = isset($_POST) ? $_GET : $HTTP_POST_VARS; if(!isset($GET_VARS['UA'])) $GET_VARS['UA'] = ''; if(!isset($GET_VARS['cc'])) $GET_VARS['cc'] = ''; if(!isset($GET_VARS['dl'])) $GET_VARS['dl'] = ''; if(!isset($GET_VARS['am'])) $GET_VARS['am'] = ''; $timer =& new phpTimer(); $timer->start('main'); $timer->start('client1'); $sniffer_settings = array('check_cookies'=>$GET_VARS['cc'], 'default_language'=>$GET_VARS['dl'], 'allow_masquerading'=>$GET_VARS['am']); $client =& new phpSniff($GET_VARS['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; ?>
stop('main'); printf("
\n".
"client instantiation time : %s\n" .
"page execution time : %s\n" .
"" ,
$timer->get_current('client1'),
$timer->get_current('main'));
?>
_______________________________