diff --git a/functions.php b/functions.php index c1733b52..1202e192 100644 --- a/functions.php +++ b/functions.php @@ -110,7 +110,8 @@ function getWebBrowser($user_browser) '/safari/i' => " Safari", '/chrome/i' => " Chrome", '/edg/i' => " Edge", - '/opr/i' => " Opera" + '/opr/i' => " Opera", + '/ddg/i' => " DuckDuckGo" ); foreach ($browser_array as $regex => $value) { if (preg_match($regex, $user_browser)) { @@ -124,9 +125,11 @@ function getOS($user_os) { $os_platform = "Unknown OS"; $os_array = array( - '/windows/i' => " Windows", + '/windows/i' => " Windows", '/macintosh|mac os x/i' => " MacOS", '/linux/i' => " Linux", + '/ubuntu/i' => " Ubuntu", + '/fedora/i' => " Fedora", '/iphone/i' => " iPhone", '/ipad/i' => " iPad", '/android/i' => " Android"