Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getSeafaring(){
- $Navegador = $_SERVER['HTTP_USER_AGENT'];
- $Saida = "";
- if(preg_match('/MSIE/i', $Navegador)) $Saida = "Internet Explorer";
- else if(preg_match('/Firefox/i',$Navegador)) $Saida = "Mozilla Firefox";
- else if(preg_match('/Chrome/i', $Navegador)) $Saida = "Google Chrome";
- else if(preg_match('/Safari/i', $Navegador)) $Saida = "Apple Safari";
- else if(preg_match('/Opera/i', $Navegador)) $Saida = "Apple Safari";
- return $Saida;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement