{'latitude'} . "," . $geoip_info->{'longitude'}; $headers = ""; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: ljunggren.dk \r\n"; $headers .= "X-Priority: 5\r\n"; $hr = "
"; $body = "" . $hr; $body .= $geoip_info->{'city'} . ' (' . $geoip_info->{'zip_code'} . ')' . ' / ' . $geoip_info->{'region_name'} . ' (' . $geoip_info->{'region_code'} . ')' . ' / ' . $geoip_info->{'country_name'} . ' (' . $geoip_info->{'country_code'} . ')' . $hr; $body .= "$ip / freegeoip.net / maps". $hr; $body .= date("l # d.m.Y @ H:i") . $hr; $body .= $_SERVER['HTTP_USER_AGENT'] . $hr; $maps_url = "https://maps.googleapis.com/maps/api/staticmap" . "?center=" . $maps_location . "&zoom=6" . "&format=png" . "&size=600x300" . "&maptype=roadmap" . "&markers=color:red|label:%95|" . $maps_location; $maps_img = "Visitor Location"; $body .= $maps_img; $body .= $hr; $body .= ""; mail("Claus ", "[web] $_subject PLEASE CHANGE TO TRACE!!!", $body, $headers); $hex_blank_image = "89504e470d0a1a0a0000000d49484452000000010000000108060000001f15c4" . "890000002a744558744372656174696f6e2054696d65006d612037206a756c20" . "323030382031313a30393a3135202b3031303061d24f4b0000000774494d4507" . "d80707090915ae80b466000000097048597300001ec100001ec101c369545300" . "00000467414d410000b18f0bfc61050000000b4944415478da63600002000005" . "0001e9fadcd80000000049454e44ae426082"; $size = strlen($hex_blank_image)/2; header("Content-Type: image/png"); header("Content-length: $size"); echo hex2bin($hex_blank_image); ?>