//IP
echo "IP: ".$_SERVER['REMOTE_ADDR'];
//Host, Rechnername
$ip = getenv("REMOTE_ADDR"); // IP bestimmen
$host = gethostbyaddr($ip); // IP auflösen und Host bestimmen
echo "$host";
//Browser
if (strpos($HTTP_USER_AGENT, "Mozilla/5.0")) {
$browser = "Mozilla";
}
if (strpos($HTTP_USER_AGENT, "Mozilla/4")) {
$browser = "Netscape";
}
if (strpos($HTTP_USER_AGENT, "Mozilla/3")) {
$browser = "Netscape";
}
if (strpos($HTTP_USER_AGENT, "Firefox") || strpos($HTTP_USER_AGENT, "Firebird")) {
$browser = "Firefox";
}
if (strpos($HTTP_USER_AGENT, "MSIE")) {
$browser = "Internet Explorer";
}
if (strpos($HTTP_USER_AGENT, "Netscape")) {
$browser = "Netscape";
}
if (strpos($HTTP_USER_AGENT, "Camino")) {
$browser = "Camino";
}
if (strpos($HTTP_USER_AGENT, "Galeon")) {
$browser = "Galeon";
}
if (strpos($HTTP_USER_AGENT, "Konqueror")) {
$browser = "Konqueror";
}
if (strpos($HTTP_USER_AGENT, "Safari")) {
$browser = "Safari";
}
if (strpos($HTTP_USER_AGENT, "OmniWeb")) {
$browser = "OmniWeb";
}
if (strpos($HTTP_USER_AGENT, "Opera")) {
$browser = "Opera";
}
if (!isset($browser)) {
$browser = "[Unbekannt]";
}
echo "$browser";
//Betriebssystem
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="Win2000";
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="Unbekannt";
echo "$system";