Im use the script lava script in my site. This function for browser
function getbrws(){
$brw=getenv('HTTP_USER_AGENT');
$ponto=explode(' ',"$brw");
if($ponto[0]=='Mozilla/5.0'){
$ponto=explode(";","$brw");
if($ponto[2]==''){
return $ponto[1];
}else{
$ponto=explode(")","$ponto[2]");
return $ponto[0];
}}elseif($ponto[0]=='Mozilla/4.0'){
$ponto=explode(";","$brw");
if($ponto[2]==''){
return $ponto[1];
}else{
$ponto=explode(")","$ponto[2]");
return $ponto[0];
}}else{
return $ponto[0];
}}
Im acess the site using opera mini the browse apear is Opera/9.60. More the real browser Sony Ericsson w610i. What code im use to apear real browser?
function getbrws(){
$brw=getenv('HTTP_USER_AGENT');
$ponto=explode(' ',"$brw");
if($ponto[0]=='Mozilla/5.0'){
$ponto=explode(";","$brw");
if($ponto[2]==''){
return $ponto[1];
}else{
$ponto=explode(")","$ponto[2]");
return $ponto[0];
}}elseif($ponto[0]=='Mozilla/4.0'){
$ponto=explode(";","$brw");
if($ponto[2]==''){
return $ponto[1];
}else{
$ponto=explode(")","$ponto[2]");
return $ponto[0];
}}else{
return $ponto[0];
}}
Im acess the site using opera mini the browse apear is Opera/9.60. More the real browser Sony Ericsson w610i. What code im use to apear real browser?
Comment