Open up Apple Maps instead of maps.google.com in IOS

This commit is contained in:
root
2019-03-30 15:44:14 -04:00
parent 34e6dde43b
commit f50bace9e9
4 changed files with 15 additions and 3 deletions

View File

@@ -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";
}
?>