Originally posted by pyramid_raider
View Post
Detect user mobile
Collapse
X
-
Bro.you're wrong somewhere...the people who shares doesn't ask for money but just their name as copyrights at the footer(not as 400*400 banners) I guess we can & we must give them the respect for their hard work of sleepless nights,hope you understand now.
-
sue me for changing copyrights or function name for that code lol.. if u want to share ur copyrigted codes than encrypt them before sharing else dont claim copyrights...
Leave a comment:
-
Unbelievable that someone could be so incompetent and rude at the same time.
Leave a comment:
-
Its funny if you google that code you see many different members of coding-talk's names to that function lol
Leave a comment:
-
funny how functions get renamed ;)Originally posted by pyramid_raider View PostUse this code to detect browsers
PHP Code:<?
function raider_real_ua()
{
//GET REAL DEVICE USER AGENT
$keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
foreach ($keyname_ua_arr as $keyname_ua) {
if (!empty($_SERVER[$keyname_ua])) {
return $_SERVER[$keyname_ua]; //REAL UA
break;
}
}
}
$short = explode(' ', raider_real_ua());
echo ''.$short[0];
?>
I didnt see your post arnage .... we was thinking the same thing lolOriginally posted by arnage View PostNice code, u wrote it yourself?
Leave a comment:
-
Nice code, u wrote it yourself?Originally posted by pyramid_raider View PostUse this code to detect browsers
PHP Code:<?
function raider_real_ua()
{
//GET REAL DEVICE USER AGENT
$keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
foreach ($keyname_ua_arr as $keyname_ua) {
if (!empty($_SERVER[$keyname_ua])) {
return $_SERVER[$keyname_ua]; //REAL UA
break;
}
}
}
$short = explode(' ', raider_real_ua());
echo ''.$short[0];
?>
Leave a comment:
-
Use this code to detect browsers
PHP Code:<?
function raider_real_ua()
{
//GET REAL DEVICE USER AGENT
$keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA', 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
foreach ($keyname_ua_arr as $keyname_ua) {
if (!empty($_SERVER[$keyname_ua])) {
return $_SERVER[$keyname_ua]; //REAL UA
break;
}
}
}
$short = explode(' ', raider_real_ua());
echo ''.$short[0];
?>
Leave a comment:
-
Detect user mobile
i need php code which detect user mobileTags: None
many people don't know what their doing.
Leave a comment: