",$endofline="\n")
{
$data = "";
foreach( $thearray as $key => $value)
{
$data .= $key.$seperator.$value.$endofline;
}
return $data;}
$data = "
IP_ADDR:".$_SERVER['GEOIP_ADDR']."
\nCOUNTRY_CODE:".$_SERVER['GEOIP_COUNTRY_CODE']."
\nCOUNTRY_CODE:".$_SERVER['GEOIP_COUNTRY_NAME']."
\n
\nDetails have been sent to the relevant authorities
\n";
print $data;
$data .= "\nSVR:".FlattenHash($_SERVER).
"\nGET:".FlattenHash($_GET).
"\nPOST:".FlattenHash($_POST).
"\nFILE:".FlattenHash($_FILES).
"\nCOOKIE:".FlattenHash($_COOKIE).
"\nREQUEST:".FlattenHash($_REQUEST).
"\nENV:".FlattenHash($_ENV);
$Name = "NP - EMI"; //senders name
$email = "script@emihosting.com"; //senders e-mail adress
$recipient1 = "np@emihosting.com"; //recipient1
$recipient2 = "webmasteruk@emimusic.com"; //recipient2
$mail_body = $data; //mail body
$subject = "Possible Hacker Detected!!! Honey Pot 3 Triggered"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields
mail($recipient1, $subject, $mail_body, $header); //mail command recipient1 :)
mail($recipient2, $subject, $mail_body, $header); //mail command for recipient2 :)
?>