diff --git a/phpgwapi/inc/class.browser.inc.php b/phpgwapi/inc/class.browser.inc.php index c0445f526a..6011a8705b 100644 --- a/phpgwapi/inc/class.browser.inc.php +++ b/phpgwapi/inc/class.browser.inc.php @@ -76,6 +76,10 @@ { $this->BROWSER_PLATFORM='Unix'; } + else if (strstr($HTTP_USER_AGENT,'Beos')) + { + $this->BROWSER_PLATFORM='Beos'; + } else { $this->BROWSER_PLATFORM='Other'; @@ -107,6 +111,42 @@ 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() { if ($this->get_platform()=='Mac')