Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mobileDevice()
- {
- $type = $_SERVER[‘HTTP_USER_AGENT’];
- if(strpos((string)$type, “Windows Phone”) != false || strpos((string)$type, “iPhone”) != false || strpos((string)$type, “Android”) != false)
- return true;
- else
- return false;
- }
- if(mobileDevice() == true)
- header(‘Location: DIN-URL-HER‘);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement