Jose A. Fuentes - 2010-04-07 14:53:14
Hi!
An alternative for getBrowserOS?
function getBrowserOS()
{
if (eregi("win", $this->useragent))
{
$this->platform = "Windows";
}
elseif (eregi("linux", $this->useragent))
{
$this->platform = "Linux";
}
elseif (eregi("mac", $this->useragent))
{
$this->platform = "Macintosh";
}
elseif (eregi("OS/2", $this->useragent))
{
$this->platform = "OS/2";
}
elseif (eregi("BeOS", $this->useragent))
{
$this->platform = "BeOS";
}
return $this->platform;
}