Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $device = '1';
- $info= $_SERVER['HTTP_USER_AGENT'];
- if( stristr($info,'ipad') ) || ( stristr($info'],'iphone') ) || ( stristr($info'],'blackberry') ) || ( stristr($info'],'android') ){
- $device = "0";
- }
- if($device=='0'){
- //redirect to mobile site
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement