System Check
Mit diesem Schnipsel kann man den Browser des Besuchers
anzeigen lassen.
|
Script: |
<?php
if (strstr($HTTP_USER_AGENT,
"Windows 95"))
{
$system = "Win95";
} else if (strstr($HTTP_USER_AGENT,
"Windows 98"))
{
$system = "Win98";
} else if (strstr($HTTP_USER_AGENT,
"NT 4.0"))
{
$system = "NT";
} else if (strstr($HTTP_USER_AGENT,
"NT 5.0"))
{
$system = "Win2k";
} else if (strstr($HTTP_USER_AGENT,
"NT 5.1"))
{
$system = "WinXP";
} else if (strstr($HTTP_USER_AGENT,
"Win"))
{
$system = "Win";
} else if (strstr($HTTP_USER_AGENT,
"Mac"))
{
$system = "Mac";
} else if (strstr($HTTP_USER_AGENT,
"Linux"))
{
$system = "Linux";
} else if (strstr($HTTP_USER_AGENT,
"Unix"))
{
$system = "Unix";
} else {
$system = "Other";
}
echo $system;
?>
|
|