diff --git a/check_login.php b/check_login.php index ed5df575..0ad39913 100644 --- a/check_login.php +++ b/check_login.php @@ -14,4 +14,16 @@ $session_name = $row['name']; $session_avatar = $row['avatar']; + + //Detects if using an apple device and uses apple maps instead of google + $iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod"); + $iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone"); + $iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad"); + + if( $iPod || $iPhone || $iPad){ + $session_map_source = "apple"; + }else{ + $session_map_source = "google"; + } + ?> \ No newline at end of file diff --git a/client_details.php b/client_details.php index 32bcee74..869f1371 100644 --- a/client_details.php +++ b/client_details.php @@ -2,7 +2,7 @@