Codice: Seleziona tutto
<script type="text/javascript">
if( navigator.userAgent.match(/Android/i)
){
window.location = "android/index.php";
}
else if(
navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)) {
window.location = "iphone/index.php";
}
else if( navigator.userAgent.match(/BlackBerry/i)){
window.location = "http://www.totalconnect.it/landing/landingsito/promotion/";
else if( navigator.userAgent.match(/Windows Phone/i)){
window.location = "http://www.totalconnect.it/landing/landingsito/promotion/";
}
else {
window.location = "http://www.totalconnect.it/landing/landingsito/promotion/";
}
</script> oltre a questo mi potreste dare una mano a ottenere uno script lato server in php? sicuramente è meglio farla gestire lato server piuttosto che client,un grazie in anticipo


