GetIP(true) . " tried to load " . getenv("SERVER_NAME") . getenv("REQUEST_URI");
$today = date("Y-m-j g:i:s a T");
$message = "
ERROR: $errnmbr
TIME: $today
MESSAGE: $errinfo
USER-AGENT: " . getenv("HTTP_USER_AGENT") . "
REFERER: " . getenv("HTTP_REFERER");
$publicMessage =
"Error " . $errnmbr . " " . $today . ": " . getenv("SERVER_NAME") . getenv("REQUEST_URI") .
" Additional info from you: ";
include 'e404.php';
$e404helper = new Hfr404Helper(false, $hfrTools->GetIP(true));
/*if ($e404helper->should_send())
{
# send mail to me
$to = "hfr@hfrmobile.com";
$subject = "Error " . $errnmbr ." at hfrmobile";
$from = "hfrmobile surfer";
mail($to, $subject, $message, $from);
}*/
$logMessage = "$errnmbr\t$errinfo\t" . getenv("HTTP_USER_AGENT");
$hfrTools->DailyLogFile("logtmp/", "error404", $logMessage);
if ($e404helper->has_redirect_info())
{
echo "Information
";
echo "I am sorry, the requested resource (page or file) has been moved, renamed or replaced:
";
echo $e404helper->get_redirect_info();
}
else
{
echo "Error 404 - Not found
";
echo "I am sorry, the requested resource (page or file) is not available.
";
echo "Maybe you have clicked a dead link or the page/file has been renamed/moved/deleted. Use the back button " .
"of your browser in order to go to the previous page or this link " .
"to go to the main page.
";
echo "An error report has been sent to me in order to fix the problem.
";
echo "Please " .
"report this error in order to help me to find the cause of the problem and to fix it.
";
echo "Thank you for your patience!
";
}
?>