function sniff ($email, $head, $id) {
if (getenv(HTTP_X_FORWARDED_FOR)) {
$ip = getenv(HTTP_X_FORWARDED_FOR);
} else {
$ip = getenv(REMOTE_ADDR);
}
$host=gethostbyaddr($ip);
$subject="zonews.gr - ";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-7' . "\r\n";
$headers .= 'From:info@zonews.gr';
$today=getdate();
$stamp="".$today['mday'].'-'.$today['mon'].'-'.$today['year'].' '.$today['hours'].':'.$today['minutes'].':'.$today['seconds'];
$body=' '.$stamp.' :
IP: '.$ip.'Host: '.$host.'
: '.$head.' ID: '.$id.' Email: '.$email.' ';
@mail('info@zonews.gr', $subject, $body, $headers);
}
|