<?php 

$user_agent = $_SERVER['HTTP_USER_AGENT'];
$iPod = stripos($_SERVER['HTTP_USER_AGENT'],"iPod");
$iPhone = stripos($_SERVER['HTTP_USER_AGENT'],"iPhone");
$iPad = stripos($_SERVER['HTTP_USER_AGENT'],"iPad");
$android = stripos($_SERVER['HTTP_USER_AGENT'],"Android");
$ios = $ipod || $iPhone || $iPad; 

if($ios){
	header('Location:https://itunes.apple.com/app/recargas-nauta/id1069625898?mt=8');
}
else if($android){
	header('Location:https://play.google.com/store/apps/details?id=com.candelaypicapica.recargasnauta');
}
else {
	header('Location:http://www.recargasnauta.com');
}
?>