ID; if (in_array($my_page,$test_pages)) { $fromName = ' PFS Online Auto email notification system'; $visittime = new DateTime(); $subject = ' URGENT MESSAGE. Page ['.$post->post_title.'] PFS Online web page visit'; if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { //check ip from share internet $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { //to check ip is pass from proxy $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $checklink = "Click here"; $checklink = "To check out the location ".$checklink; /* Mail Address */ $toAddr = 'tony.lord@pfsonline.org'; $bccAddr = 'tony.lord@lordfamily.org.uk'; $fromAddr = 'no-reply@pfsonline.org'; /* End Mail Address */ /* Programmers Note: /* r is RFC 2822 formatted date, Example: Thu, 21 Dec 2000 16:01:07 +0200*/ /* Mail Body */ $msg = ' URGENT MESSAGE Someone has just visited page '.$my_page.' on the PFS Online website

This page is titled ['.$post->post_title.']

The visit started at '.date_format($visittime, 'r').'

The visitors IP address was '.$ip.'

'.$checklink.'

Go get them tiger!

Remember you need two notifications close together, minimum six (typically 20) seconds apart. The first is when the visitor is asked for the password and the second when they have input their password.

Single notifications could well be a \'bot\'.

'; $msg = wordwrap($msg, 70); /* End Mail Body */ /* Mail Headers Setup */ $headers = array(); $headers[] = "MIME-Version: 1.0"; $headers[] = "Content-type: text/html; charset=utf-8"; $headers[] = "From: ".$fromName." <".$fromAddr.">"; $headers[] = "Bcc: <".$bccAddr.">"; /* End Mail Headers Setup */ mail($toAddr, $subject, $msg, implode("\r\n", $headers)); /* echo "Mail Sent\n\r"; */ }/* end in_array($my_page,$test_pages)) */ ?>

PFS Online

If our organization has contacted you then read on, this is especially for YOU.

If you have come for any other reason, then there is no point in you reading any further. We only work with people we have already identified as being precisely the right person.