X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2FResumes%2FAndrew%2FResumeLong.php;h=eeaec35944256f189f705cb72b6aae161973c2e7;hb=a7665f383d2389d4297dd5e8ce1205d113f26709;hp=580ab686995c69e3e15d578c32890388c1bf12ec;hpb=528d475fbd624e594d0e66f15d6e116e3d057cec;p=clearscm.git diff --git a/web/Resumes/Andrew/ResumeLong.php b/web/Resumes/Andrew/ResumeLong.php index 580ab68..eeaec35 100644 --- a/web/Resumes/Andrew/ResumeLong.php +++ b/web/Resumes/Andrew/ResumeLong.php @@ -41,6 +41,57 @@ function stoptimer () { '; + $msg .= '

Somebody just visited your resume.

'; + $msg .= "

Here's what I know about them:

"; + + foreach ($_SERVER as $key => $value) { + if (preg_match("/^REMOTE/", $key)) { + $msg .= "$key: $value
"; + + if ($key == 'REMOTE_ADDR') { + exec("whois $value", $output, $result); + + foreach ($output as $line) { + $msg .= "$line
"; + } // foreach + } // if + } // if + } // foreach + + $msg .= ''; + $headers = "MIME-Version: 1.0\r\n"; + $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; + $headers .= "From: Andrew DeFaria "; + + mail("andrew@defaria.com", "Somebody visited your resume", $msg, $headers); ?>