Remove global call to unneeded string, and add return_array() function

This commit is contained in:
Miles Lott 2001-04-07 14:59:00 +00:00
parent 0c542fc251
commit 31382231a0

View File

@ -29,10 +29,11 @@
var $BROWSER_AGENT;
var $BROWSER_VER;
var $BROWSER_PLATFORM;
var $data;
function browser ()
{
global $HTTP_USER_AGENT,$log_version;
global $HTTP_USER_AGENT;
/*
Determine browser and version
*/
@ -96,6 +97,17 @@
*/
}
function return_array()
{
$this->data = array(
'agent' = $this->get_agent,
'version' = $this->get_version,
'platform' = $this->get_platform
);
return $this->data;
}
function get_agent ()
{
return $this->BROWSER_AGENT;