This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C053C8.6118134A
Content-Type: text/plain;
charset="iso-8859-1"
>Im very familar with how cferror works along with the rest of it & your
>email wuz an excellent example of exactly what I wuz looking for!!! hehe
>
>I wrote to the group in hopes of finding a tip or trick on how someone has
>exploited <cferror>. Ive had a couple of thoughts about it myself & I have
>to say yours is very unique. Yes, if you wouldnt mind, Id love to see the
>code that makes this work! hehe
>
>Sincerely,
>Mike
The list is quite today.
In the first reply you saw what to put in the application.cfm. Here is the
content of error01.cfm:
<!--- error01.cfm --->
<html>
<head><title>Please Wait...</title>
</head>
<body onload="window.document.forms.info.submit();">
<form action="/error02.cfm" name=info method="post">
<input type=hidden name=dt value="#Error.DateTime#">
<input type=hidden name=browser value="#Error.Browser#">
<input type=hidden name=HTTPReferer value="#Error.HTTPReferer#">
<input type=hidden name=template value="#Error.Template#">
<input type=hidden name=qs value="#Error.QueryString#">
<textarea name=Diagnostics
style="visibility:hidden;">#Error.Diagnostics#</textarea>
</form>
</body>
</html>
<!--- error02.cfm --->
And here is the error02.cfm content:
<!--- error02.cfm --->
<cfsilent>
<cftry>
<cfmail to = "[EMAIL PROTECTED]"
from = "[EMAIL PROTECTED]"
subject = "Server #cgi.server_name# Has Had An Error"
type = "html"
>
<table cellpadding=1 cellspacing=1 bgcolor=003399>
<tr><td bgcolor=336699
style=color:ffffff;><strong>DATE-TIME</strong></td><td
bgcolor=ffffff>#dt#</td></tr>
<tr><td bgcolor=336699 style=color:ffffff;><strong>BROWSER</strong></td><td
bgcolor=ffffff>#Browser#</td></tr>
<tr><td bgcolor=336699
style=color:ffffff;><strong>HTTPReferer</strong></td><td
bgcolor=ffffff>#HTTP_Referer#</td></tr>
<tr><td bgcolor=336699 style=color:ffffff;><strong>TEMPLATE</strong></td><td
bgcolor=ffffff>#Template#</td></tr>
<tr><td bgcolor=336699 style=color:ffffff; nowrap><strong>QUERY
STRING</strong></td><td bgcolor=ffffff>#qs#</td></tr>
<tr><td bgcolor=336699 style=color:ffffff;
valign=top><strong>DIAGNOSTICS</strong></td><td
bgcolor=ffffff>#diagnostics#</td></tr>
<tr><td bgcolor=336699 style=color:ffffff;
valign=top><strong>IP</strong></td><td
bgcolor=ffffff>#cgi.remote_addr#</td></tr>
<cfif isdefined("user.username")>
<tr><td bgcolor=336699 style=color:ffffff; valign=top><strong>USER
NAME</strong></td><td bgcolor=ffffff>#user.username#</td></tr>
</cfif>
<cfif isdefined("user.firstname")>
<tr><td bgcolor=336699 style=color:ffffff; valign=top><strong>FIRST
NAME</strong></td><td bgcolor=ffffff>#user.firstname#</td></tr>
</cfif>
</table>
</cfmail>
<!--- send the user an email --->
<cfif isdefined("ucookie.email")>
<cfmail to = "#ucookie.email#"
from = "[EMAIL PROTECTED]"
subject = "Error on our site"
type = "html">
Dear #ucookie.firstname# #ucookie.lastname#,<br><br>
We are aware that you have received an error on our site. We are looking
into the matter right now.
Please try what you were doing again. Often, the problem will not occur a
second time.
If the problem persists please be patient.
Try again shortly and we will likely have the problem resovled.<br><br>
Thank You<br><br>
Customer Care<br>
http://#cgi.server_name#<br>
</cfmail>
</cfif>
<!--- /send the user an email --->
<cfcatch>
</cfcatch>
</cftry>
</cfsilent>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>An Unexpected Error Has Occurred</title>
<link rel="STYLESHEET" type="text/css" href="/styles/ricestyles.css">
<script language="javascript">
function _err(){
alert("\n\nWe're sorry, but the
<cfoutput>#cgi.server_name#</cfoutput> page you were accessing has had an
unexpected error.\n\nPlease try once more but contact us by phone or email
if the problem persists.\n\n");
}
function _retry(){
histroy.back(2);
}
</script>
</head>
<!--- your content should go here --->
<body BGCOLOR="#ffffff" ALINK="#ffff00" VLINK="#ffffff"
MARGINHEIGHT="9" MARGINWIDTH="9" TOPMARGIN="9" LEFTMARGIN="9"
onload="_err();"
>
<table border="0" cellspacing="0" cellpadding="0" name="ctr1a" width="580">
<tr><td><Your message here.></td></tr>
<tr><td><a href="javascript:_retry();">Click here to try
again.</a></td></tr>
</table>
<!--- /your content should go here --->
</body>
<html>
<!--- /error02.cfm --->
-Rice
------_=_NextPart_001_01C053C8.6118134A
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: cferror..... [this has the code pages inserted]p[MIME =
format]</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>>Im very familar with how cferror works along with =
the rest of it & your </FONT>
<BR><FONT SIZE=3D2>>email wuz an excellent example of exactly what I =
wuz looking for!!! hehe</FONT>
<BR><FONT SIZE=3D2>></FONT>
<BR><FONT SIZE=3D2>>I wrote to the group in hopes of finding a tip =
or trick on how someone has </FONT>
<BR><FONT SIZE=3D2>>exploited <cferror>. Ive had a couple of =
thoughts about it myself & I have </FONT>
<BR><FONT SIZE=3D2>>to say yours is very unique. Yes, if you wouldnt =
mind, Id love to see the </FONT>
<BR><FONT SIZE=3D2>>code that makes this work! hehe</FONT>
<BR><FONT SIZE=3D2>></FONT>
<BR><FONT SIZE=3D2>>Sincerely,</FONT>
<BR><FONT SIZE=3D2>>Mike</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>The list is quite today.</FONT>
</P>
<P><FONT SIZE=3D2>In the first reply you saw what to put in the =
application.cfm. Here is the content of error01.cfm:</FONT>
</P>
<P><FONT SIZE=3D2><!--- =
=
error01.cfm =
---></FONT>
<BR><FONT SIZE=3D2><html></FONT>
<BR><FONT SIZE=3D2><head><title>Please =
Wait...</title></FONT>
<BR><FONT SIZE=3D2></head></FONT>
<BR><FONT SIZE=3D2><body =
onload=3D"window.document.forms.info.submit();"></FONT>
<BR><FONT SIZE=3D2><form action=3D"/error02.cfm" =
name=3Dinfo method=3D"post"></FONT>
<BR><FONT SIZE=3D2><input type=3Dhidden =
name=3Ddt =
=
value=3D"#Error.DateTime#"></FONT>
<BR><FONT SIZE=3D2><input type=3Dhidden name=3Dbrowser =
=
=
value=3D"#Error.Browser#"></FONT>
<BR><FONT SIZE=3D2><input type=3Dhidden =
name=3DHTTPReferer =
=
value=3D"#Error.HTTPReferer#"></FONT>
<BR><FONT SIZE=3D2><input type=3Dhidden =
name=3Dtemplate =
=
value=3D"#Error.Template#"></FONT>
<BR><FONT SIZE=3D2><input type=3Dhidden =
name=3Dqs =
value=3D"#Error.QueryString#"></FONT>
<BR><FONT SIZE=3D2><textarea name=3DDiagnostics =
style=3D"visibility:hidden;">#Error.Diagnostics#</textar=
ea></FONT>
<BR><FONT SIZE=3D2></form></FONT>
<BR><FONT SIZE=3D2></body></FONT>
<BR><FONT SIZE=3D2></html></FONT>
<BR><FONT SIZE=3D2><!--- =
=
error02.cfm =
---></FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=3D2>And here is the error02.cfm content:</FONT>
</P>
<BR>
<BR>
<BR>
<P><FONT SIZE=3D2><!--- =
=
error02.cfm =
---></FONT>
</P>
<P><FONT SIZE=3D2><cfsilent></FONT>
<BR><FONT SIZE=3D2><cftry></FONT>
</P>
<P><FONT SIZE=3D2><cfmail to =
=3D =
"[EMAIL PROTECTED]"</FONT>
<BR> =
<FONT =
SIZE=3D2>from =3D =
"[EMAIL PROTECTED]"</FONT>
<BR> =
<FONT SIZE=3D2>subject =3D =
"Server #cgi.server_name# Has Had An Error"</FONT>
<BR> =
<FONT =
SIZE=3D2>type =3D "html"</FONT>
<BR><FONT SIZE=3D2>></FONT>
</P>
<P><FONT SIZE=3D2><table cellpadding=3D1 cellspacing=3D1 =
bgcolor=3D003399></FONT>
<BR><FONT SIZE=3D2><tr><td bgcolor=3D336699 =
style=3Dcolor:ffffff;><strong>DATE-TIME</strong></td&g=
t;<td bgcolor=3Dffffff>#dt#</td></tr></FONT>
</P>
<P><FONT SIZE=3D2><tr><td bgcolor=3D336699 =
style=3Dcolor:ffffff;><strong>BROWSER</strong></td>=
<td bgcolor=3Dffffff>#Browser#</td></tr></FONT>
</P>
<P><FONT SIZE=3D2><tr><td bgcolor=3D336699 =
style=3Dcolor:ffffff;><strong>HTTPReferer</strong></td=
><td =
bgcolor=3Dffffff>#HTTP_Referer#</td></tr></FONT>
</P>
<P><FONT SIZE=3D2><tr><td bgcolor=3D336699 =
style=3Dcolor:ffffff;><strong>TEMPLATE</strong></td>=
;<td bgcolor=3Dffffff>#Template#</td></tr></FONT>
</P>
<P><FONT SIZE=3D2><tr><td bgcolor=3D336699 =
style=3Dcolor:ffffff; nowrap><strong>QUERY =
STRING</strong></td><td =
bgcolor=3Dffffff>#qs#</td></tr></FONT>
</P>
<P><FONT SIZE=3D2><tr><td bgcolor=3D336699 =
style=3Dcolor:ffffff; =
valign=3Dtop><strong>DIAGNOSTICS</strong></td><t=
d bgcolor=3Dffffff>#diagnostics#</td></tr></FONT></P>
<P><FONT SIZE=3D2><tr><td bgcolor=3D336699 =
style=3Dcolor:ffffff; =
valign=3Dtop><strong>IP</strong></td><td =
bgcolor=3Dffffff>#cgi.remote_addr#</td></tr></FONT></P>
<P><FONT SIZE=3D2><cfif =
isdefined("user.username")></FONT>
<BR> <FONT =
SIZE=3D2><tr><td bgcolor=3D336699 style=3Dcolor:ffffff; =
valign=3Dtop><strong>USER NAME</strong></td><td =
bgcolor=3Dffffff>#user.username#</td></tr></FONT></P>
<P><FONT SIZE=3D2></cfif></FONT>
<BR><FONT SIZE=3D2><cfif =
isdefined("user.firstname")></FONT>
<BR> <FONT =
SIZE=3D2><tr><td bgcolor=3D336699 style=3Dcolor:ffffff; =
valign=3Dtop><strong>FIRST =
NAME</strong></td><td =
bgcolor=3Dffffff>#user.firstname#</td></tr></FONT></P>
<P><FONT SIZE=3D2></cfif></FONT>
<BR><FONT SIZE=3D2></table></FONT>
</P>
<P><FONT SIZE=3D2></cfmail></FONT>
</P>
<BR>
<P><FONT SIZE=3D2><!--- send the user an email =
---></FONT>
<BR><FONT SIZE=3D2><cfif =
isdefined("ucookie.email")></FONT>
<BR><FONT SIZE=3D2><cfmail to =
=3D =
"#ucookie.email#"</FONT>
<BR> =
<FONT =
SIZE=3D2>from =3D =
"[EMAIL PROTECTED]"</FONT>
<BR> =
<FONT SIZE=3D2>subject =3D =
"Error on our site"</FONT>
<BR> =
<FONT =
SIZE=3D2>type =3D "html"></FONT>
</P>
<P><FONT SIZE=3D2>Dear #ucookie.firstname# =
#ucookie.lastname#,<br><br></FONT>
</P>
<P><FONT SIZE=3D2>We are aware that you have received an error on our =
site. We are looking into the matter right now.</FONT>
</P>
<P><FONT SIZE=3D2>Please try what you were doing again. Often, =
the problem will not occur a second time. </FONT>
</P>
<P><FONT SIZE=3D2>If the problem persists please be patient.</FONT>
</P>
<P><FONT SIZE=3D2>Try again shortly and we will likely have the problem =
resovled.<br><br></FONT>
</P>
<P><FONT SIZE=3D2>Thank You<br><br></FONT>
<BR><FONT SIZE=3D2>Customer Care<br></FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://#cgi.server_name" =
TARGET=3D"_blank">http://#cgi.server_name</A>#<br></FONT>
</P>
<BR>
<P><FONT SIZE=3D2></cfmail></FONT>
<BR><FONT SIZE=3D2></cfif></FONT>
</P>
<P><FONT SIZE=3D2><!--- /send the user an email =
---></FONT>
</P>
<P><FONT SIZE=3D2><cfcatch></FONT>
<BR><FONT SIZE=3D2></cfcatch></FONT>
<BR><FONT SIZE=3D2></cftry></FONT>
<BR><FONT SIZE=3D2></cfsilent></FONT>
<BR><FONT SIZE=3D2><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 =
Transitional//EN"></FONT>
<BR><FONT SIZE=3D2><html></FONT>
<BR><FONT SIZE=3D2><head></FONT>
<BR><FONT SIZE=3D2><title>An Unexpected Error Has =
Occurred</title></FONT>
<BR><FONT SIZE=3D2><link rel=3D"STYLESHEET" =
type=3D"text/css" =
href=3D"/styles/ricestyles.css"></FONT>
</P>
<P><FONT SIZE=3D2><script =
language=3D"javascript"></FONT>
<BR> <FONT SIZE=3D2>function =
_err(){</FONT>
<BR> =
<FONT =
SIZE=3D2>alert("\n\nWe're sorry, but the =
<cfoutput>#cgi.server_name#</cfoutput> page you were =
accessing has had an unexpected error.\n\nPlease try once more but =
contact us by phone or email if the problem =
persists.\n\n");</FONT></P>
<P> <FONT SIZE=3D2>}</FONT>
<BR> <FONT SIZE=3D2>function =
_retry(){</FONT>
<BR> =
<FONT =
SIZE=3D2>histroy.back(2);</FONT>
<BR> <FONT SIZE=3D2>}</FONT>
<BR><FONT SIZE=3D2></script></FONT>
<BR><FONT SIZE=3D2></head></FONT>
</P>
<P><FONT SIZE=3D2><!--- your content should go =
here ---></FONT>
</P>
<P><FONT SIZE=3D2><body BGCOLOR=3D"#ffffff" =
ALINK=3D"#ffff00" VLINK=3D"#ffffff"</FONT>
<BR> <FONT =
SIZE=3D2>MARGINHEIGHT=3D"9" MARGINWIDTH=3D"9" =
TOPMARGIN=3D"9" LEFTMARGIN=3D"9" =
onload=3D"_err();"</FONT>
<BR> <FONT =
SIZE=3D2>></FONT>
</P>
<P><FONT SIZE=3D2><table border=3D"0" =
cellspacing=3D"0" cellpadding=3D"0" =
name=3D"ctr1a" width=3D"580"></FONT>
<BR> <FONT =
SIZE=3D2><tr><td><Your message =
here.></td></tr></FONT>
<BR> <FONT =
SIZE=3D2><tr><td><a =
href=3D"javascript:_retry();">Click here to try =
again.</a></td></tr></FONT>
<BR><FONT SIZE=3D2></table></FONT>
</P>
<P><FONT SIZE=3D2><!--- /your content should go =
here ---></FONT>
</P>
<P><FONT SIZE=3D2></body></FONT>
<BR><FONT SIZE=3D2><html></FONT>
</P>
<P><FONT SIZE=3D2><!--- =
=
/error02.cfm =
---></FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=3D2>-Rice</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C053C8.6118134A--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists