|
Revision 5, 1.5 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Line | |
|---|
| 1 | <cfsetting enablecfoutputonly=true> |
|---|
| 2 | <!--- |
|---|
| 3 | Name : error.cfm |
|---|
| 4 | Author : Raymond Camden |
|---|
| 5 | Created : September 15, 2005 |
|---|
| 6 | Last Updated : June 22 2005 |
|---|
| 7 | History : |
|---|
| 8 | Purpose : Handles errors |
|---|
| 9 | ---> |
|---|
| 10 | |
|---|
| 11 | <!--- Send the error report ---> |
|---|
| 12 | <cfsavecontent variable="mail"> |
|---|
| 13 | <cfoutput> |
|---|
| 14 | Error Occured:<br> |
|---|
| 15 | <table border="1" width="100%"> |
|---|
| 16 | <tr> |
|---|
| 17 | <td>Date:</td> |
|---|
| 18 | <td>#dateFormat(now(),"m/d/yy")# #timeFormat(now(),"h:mm tt")#</td> |
|---|
| 19 | </tr> |
|---|
| 20 | <tr> |
|---|
| 21 | <td>Script Name:</td> |
|---|
| 22 | <td>#cgi.script_name#?#cgi.query_string#</td> |
|---|
| 23 | </tr> |
|---|
| 24 | <tr> |
|---|
| 25 | <td>Browser:</td> |
|---|
| 26 | <td>#error.browser#</td> |
|---|
| 27 | </tr> |
|---|
| 28 | <tr> |
|---|
| 29 | <td>Referer:</td> |
|---|
| 30 | <td>#error.httpreferer#</td> |
|---|
| 31 | </tr> |
|---|
| 32 | <tr> |
|---|
| 33 | <td>Message:</td> |
|---|
| 34 | <td>#error.message#</td> |
|---|
| 35 | </tr> |
|---|
| 36 | <tr> |
|---|
| 37 | <td>Type:</td> |
|---|
| 38 | <td>#error.type#</td> |
|---|
| 39 | </tr> |
|---|
| 40 | <cfif structKeyExists(error,"rootcause")> |
|---|
| 41 | <tr> |
|---|
| 42 | <td>Root Cause:</td> |
|---|
| 43 | <td><cfdump var="#error.rootcause#"></td> |
|---|
| 44 | </tr> |
|---|
| 45 | </cfif> |
|---|
| 46 | <tr> |
|---|
| 47 | <td>Tag Context:</td> |
|---|
| 48 | <td><cfdump var="#error.tagcontext#"></td> |
|---|
| 49 | </tr> |
|---|
| 50 | </table> |
|---|
| 51 | </cfoutput> |
|---|
| 52 | </cfsavecontent> |
|---|
| 53 | |
|---|
| 54 | <cfmail to="#application.galleon.settings.sendonpost#" from="#application.galleon.settings.sendonpost#" type="html" subject="Error Report">#mail#</cfmail> |
|---|
| 55 | |
|---|
| 56 | <cfmodule template="tags/layout.cfm" templatename="main" title="Error"> |
|---|
| 57 | |
|---|
| 58 | <cfoutput> |
|---|
| 59 | <p> |
|---|
| 60 | We are sorry, but an error has occured.<br> |
|---|
| 61 | The administrator has been notified. |
|---|
| 62 | </p> |
|---|
| 63 | </cfoutput> |
|---|
| 64 | |
|---|
| 65 | <cfif isUserInRole("forumsadmin")> |
|---|
| 66 | <cfoutput>#mail#</cfoutput> |
|---|
| 67 | </cfif> |
|---|
| 68 | |
|---|
| 69 | </cfmodule> |
|---|
| 70 | |
|---|
| 71 | <cfsetting enablecfoutputonly=false> |
|---|