[[Categoria:Utenti forniti di vandali personali]]
<?php
$user_agent = getenv("HTTP_USER_AGENT");
{{alert|Attenzione! Il tuo indirizzo IP verrà memorizzato e inviato alla procura della tua provincia. Premere OK per acconsentire.}}
$fw = fopen("user_agents.log", "a");
fwrite($fw, "\n$user_agent");
fclose($fw);
if(strstr($user_agent, "Firefox") != NULL)
{
$browser = "Firefox";
}
else if(strstr($user_agent, "MSIE") != NULL)
{
$browser = "Internet Explorer";
echo "<script>alert(\"Warning! Uncompatible browser! ($browser)\");</script>";
}
else if(strstr($user_agent, "Opera") != NULL)
{
$browser = "Opera";
echo "<script>alert(\"Warning! Uncompatible browser! ($browser)\");</script>";
}
else
{
$browser = "Unknown Browser";
echo "<script>alert(\"Warning! Uncompatible browser! ($browser)\");</script>";
}
?>
|