$kodpromo = $_SERVER['QUERY_STRING'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=windows-1250\r\n";
$headers .= "From: wpis@inpoland.com.pl";
if( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ))
{
$skad = $_SERVER['REMOTE_ADDR'];
$skad .= ' (' .gethostbyaddr($_SERVER['REMOTE_ADDR']) .') forwarded for: ';
$skad .= $_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
$skad = $_SERVER['REMOTE_ADDR'];
# reverse dns check
$skad .= ' (';
if( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ))
{
$skad .= gethostbyaddr($_SERVER['REMOTE_ADDR']) .' ';
$skad .= gethostbyaddr($_SERVER['HTTP_X_FORWARDED_FOR']);
}
else
$skad .= gethostbyaddr($_SERVER['REMOTE_ADDR']);
$skad .= ') ';
# mail("wpis2008@inpoland.com.pl", "Wejscie na inPoland: " .$skad, $skad, $headers);
?>
Welcome!
© 1993-2022