Code: Select all
function GetUserAgent() {
if (isset($_SERVER['HTTP_USER_AGENT']))
{
if ($_SERVER['HTTP_USER_AGENT'] != NULL)
{
$this->GetUserAgent = strtolower((string)$_SERVER['HTTP_USER_AGENT']);
}
else
{
$this->GetUserAgent = '';
}
}
else
{
$this->GetUserAgent = '';
}
}