<cfsilent>
<cfif StructKeyExists( VARIABLES, "Error" )>
<cfmail
to="ben@xxxxxxxxxx.com"
from="web-errors@xxxxxxxxxx.com"
subject="Web Site Error"
type="html">
<p>
An error occurred at
#DateFormat( Now(), "mmm d, yyyy" )# at
#TimeFormat( Now(), "hh:mm TT" )#
</p>
<h3>
Error
</h3>
<cfdump
var="#MakeStructSecure( VARIABLES.Error )#"
label="Error object."
/>
<h3>
CGI
</h3>
<cfdump
var="#MakeStructSecure( CGI )#"
label="CGI object"
/>
<h3>
REQUEST
</h3>
<cfdump
var="#MakeStructSecure( REQUEST )#"
label="REQUEST object"
top="5"
/>
<h3>
FORM
</h3>
<cfdump
var="#MakeStructSecure( FORM )#"
label="FORM object"
top="5"
/>
<h3>
URL
</h3>
<cfdump
var="#MakeStructSecure( URL )#"
label="URL object"
top="5"
/>
<h3>
SESSION
</h3>
<cfdump
var="#MakeStructSecure( SESSION )#"
label="SESSION object"
top="5"
/>
</cfmail>
</cfif>
<cfset REQUEST.RequestCommitted = false />
<cftry>
<cfheader
statuscode="500"
statustext="Internal Server Error"
/>
<cfcontent
type="text/html"
reset="true"
/>
<cfcatch>
<cfset REQUEST.RequestCommitted = true />
</cfcatch>
</cftry>
</cfsilent>
<cfif (
StructKeyExists( VARIABLES, "Error" ) AND
REQUEST.RequestCommitted AND
(NOT StructKeyExists( URL, "norefresh" ))
)>
<script type="text/javascript">
window.location.href = "cferror.cfm?norefresh=true";
</script>
<cfexit />
</cfif>
<!DOCTYPE html PUBLIC "- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>An Error Occurred</title>
</head>
<body>
<h1>
Internal Server Error
</h1>
<p>
An internal server error has occurred, but our
squad of CF Ninjas are looking into it! Naturally,
you won't be able to tell that they're doing
anything because they are Ninjas! But, rest assured,
stuff is getting done.
</p>
</body>
</html>