Merge pull request #3852 from hregis/develop_origin
FIX add Mac OS detection and show it into OS information of user popup
This commit is contained in:
commit
a14fee7296
@ -179,6 +179,7 @@ function getBrowserInfo($user_agent)
|
|||||||
|
|
||||||
// OS
|
// OS
|
||||||
if (preg_match('/linux/i', $user_agent)) { $os='linux'; }
|
if (preg_match('/linux/i', $user_agent)) { $os='linux'; }
|
||||||
|
elseif (preg_match('/macintosh/i', $user_agent)) { $os='macintosh'; }
|
||||||
|
|
||||||
// Name
|
// Name
|
||||||
if (preg_match('/firefox(\/|\s)([\d\.]*)/i', $user_agent, $reg)) { $name='firefox'; $version=$reg[2]; }
|
if (preg_match('/firefox(\/|\s)([\d\.]*)/i', $user_agent, $reg)) { $name='firefox'; $version=$reg[2]; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user