Renamed MacOS X to just MacOS for user agent detection

This commit is contained in:
johnnyq 2021-12-12 02:01:30 -05:00
parent 7c0cce413f
commit aaf65db6f3
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ function get_web_browser() {
function get_os() {
$user_agent = get_user_agent();
$os_platform = "Unknown OS Platform";
$os_platform = "Unknown OS";
$os_array = array(
'/windows nt 10/i' => 'Windows 10',
'/windows nt 6.3/i' => 'Windows 8.1',
@ -107,7 +107,7 @@ function get_os() {
'/windows nt 5.2/i' => 'Windows Server 2003/XP x64',
'/windows nt 5.1/i' => 'Windows XP',
'/windows xp/i' => 'Windows XP',
'/macintosh|mac os x/i' => 'Mac OS X',
'/macintosh|mac os x/i' => 'MacOS',
'/linux/i' => 'Linux',
'/ubuntu/i' => 'Ubuntu',
'/iphone/i' => 'iPhone',