From da3fec9d7c9eac35210347982b0c9f32ab3e3df8 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 7 Apr 2001 14:34:37 +0000 Subject: [PATCH] Add some additional functions --- phpgwapi/inc/class.browser.inc.php | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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')