| | |
| | | | program/include/rcube_browser.php | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2007-2008, RoundCube Dev. - Switzerland | |
| | | | Copyright (C) 2007-2009, RoundCube Dev. - Switzerland | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | $this->linux = stristr($HTTP_USER_AGENT, 'linux'); |
| | | $this->unix = stristr($HTTP_USER_AGENT, 'unix'); |
| | | |
| | | $this->opera = stristr($HTTP_USER_AGENT, 'opera'); |
| | | $this->ns4 = stristr($HTTP_USER_AGENT, 'mozilla/4') && !stristr($HTTP_USER_AGENT, 'msie'); |
| | | $this->ns = ($this->ns4 || stristr($HTTP_USER_AGENT, 'netscape')); |
| | | $this->ie = stristr($HTTP_USER_AGENT, 'msie'); |
| | | $this->ie = stristr($HTTP_USER_AGENT, 'compatible; msie') && !$this->opera; |
| | | $this->mz = stristr($HTTP_USER_AGENT, 'mozilla/5'); |
| | | $this->opera = stristr($HTTP_USER_AGENT, 'opera'); |
| | | $this->safari = stristr($HTTP_USER_AGENT, 'safari'); |
| | | $this->khtml = stristr($HTTP_USER_AGENT, 'khtml'); |
| | | $this->safari = ($this->khtml || stristr($HTTP_USER_AGENT, 'safari')); |
| | | |
| | | if ($this->ns) { |
| | | $test = eregi("mozilla\/([0-9\.]+)", $HTTP_USER_AGENT, $regs); |