Add some additional functions

This commit is contained in:
Miles Lott 2001-04-07 14:34:37 +00:00
parent 0d001b95b8
commit da3fec9d7c

View File

@ -76,6 +76,10 @@
{ {
$this->BROWSER_PLATFORM='Unix'; $this->BROWSER_PLATFORM='Unix';
} }
else if (strstr($HTTP_USER_AGENT,'Beos'))
{
$this->BROWSER_PLATFORM='Beos';
}
else else
{ {
$this->BROWSER_PLATFORM='Other'; $this->BROWSER_PLATFORM='Other';
@ -107,6 +111,42 @@
return $this->BROWSER_PLATFORM; return $this->BROWSER_PLATFORM;
} }
function is_linux()
{
if ($this->get_platform()=='Linux')
{
return true;
}
else
{
return false;
}
}
function is_unix()
{
if ($this->get_platform()=='Unix')
{
return true;
}
else
{
return false;
}
}
function is_beos()
{
if ($this->get_platform()=='Beos')
{
return true;
}
else
{
return false;
}
}
function is_mac() function is_mac()
{ {
if ($this->get_platform()=='Mac') if ($this->get_platform()=='Mac')