View Single Post
Old 06-20-2015, 03:20 PM  
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
Quote:
Originally Posted by Paul&John View Post
Yap something like this:

Code:
<?php
$text = $_SERVER['HTTP_USER_AGENT'];
 if (preg_match('/mobile|android|iphone|blackberry|brew|htc|j2me|lg| midp|mot|motorola|netfront|nokia|obigo|openweb|ope ra.mini|palm|psp|samsung|sanyo|sch|sonyericsson|sy mbian|symbos|teleca|up.browser|vodafone|wap|window s(\.ce)|webos/i', $text))
 {
	//echo "MOBILE<br>";
 }
 else
 {
 //do nothing or something else
	// echo "NOT MOBILE";
 }

?>


You can do something like this in Revive too -> Screenshot by Lightshot
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote