Blah blah, might be useful.
Code:
function userAgnt(){ $str = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; if(stristr('Opera Mini',$str)){ $str = isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) ? $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'] : ''; } return mysql_real_escape_string($str); }
Comment