Fix: add Mac OS
This commit is contained in:
parent
a58b5f26f6
commit
0fd7ba478a
@ -179,6 +179,7 @@ function getBrowserInfo($user_agent)
|
||||
|
||||
// OS
|
||||
if (preg_match('/linux/i', $user_agent)) { $os='linux'; }
|
||||
elseif (preg_match('/macintosh/i', $user_agent)) { $os='macintosh'; }
|
||||
|
||||
// Name
|
||||
if (preg_match('/firefox(\/|\s)([\d\.]*)/i', $user_agent, $reg)) { $name='firefox'; $version=$reg[2]; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user