Hi,
Falls ich mich irre, korrigiere mich bitte.
du koenntest recht haben ;-)
aber wie findest du:
<?
function detect_ua($agent) {
$agent = " ".$agent;
$ua ="unknown";
$Kennung = array("Mozilla","Mozilla/3","Mozilla/4","Mozilla/5","Mozilla/6","MSIE","MSIE 2","MSIE 3","MSIE 4","MSIE 5","MSIE 6","Lotus-Notes","WebTV","Opera","w3m","Lynx","amaya");
for($i=0;$i<count($Kennung);$i++) {
strpos($agent,$Kennung[$i])?$ua=$Kennung[$i]:$foo;
}
return($ua);
}
echo detect_ua($HTTP_USER_AGENT);
?>
*g*
MfG Olli