'legit') {echo('Sorry you didnt call this page correctly.'); die();} if (substr($page,0,4)=='http'){$badpage = $page; $page='index'; $ip = $_SERVER[REMOTE_ADDR]; $host = $_SERVER[HTTP_USER_AGENT]; $via = $_SERVER[HTTP_VIA]; $date = date("l d F Y"); $time = date("g:i:s a"); $to_email = "brians@sheyennemfg.com"; $subject = "Hack Attempt - Bad Page passed PLG"; $msg = "Hack Attempted by " . $ip . " on " . $date . " " . $time . "\r\n " . $badpage . "\r\n Host:" . $host. "\r\n Via:" . $via ; $headers = 'From: ' . $to_email . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to_email,$subject,$msg,$headers); }; //include('counter.php');?>