Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 1 | <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;"> |
| 2 | |
| 3 | <h4>A PHP Error was encountered</h4> |
| 4 | |
| 5 | <p>Severity: <?php echo $severity; ?></p> |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 6 | <p>Message: <?php echo $message; ?></p> |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 7 | <p>Filename: <?php echo $filepath; ?></p> |
| 8 | <p>Line Number: <?php echo $line; ?></p> |
Timothy Warren | d609a59 | 2011-10-18 06:27:31 -0400 | [diff] [blame^] | 9 | |
Timothy Warren | 5600828 | 2011-10-13 11:59:44 -0300 | [diff] [blame] | 10 | <?php if(defined('SHOW_ERROR_BACKTRACE') && SHOW_ERROR_BACKTRACE === TRUE): ?> |
Timothy Warren | d609a59 | 2011-10-18 06:27:31 -0400 | [diff] [blame^] | 11 | |
Timothy Warren | 5600828 | 2011-10-13 11:59:44 -0300 | [diff] [blame] | 12 | <p>Backtrace: </p> |
| 13 | <?php foreach(debug_backtrace() as $error): ?> |
Timothy Warren | d609a59 | 2011-10-18 06:27:31 -0400 | [diff] [blame^] | 14 | |
| 15 | <?php if(isset($error['file']) && ! stristr($error['file'], SYSDIR)): ?> |
| 16 | <p> |
| 17 | File: <?php echo $error['file'] ?><br /> |
| 18 | Line: <?php echo $error['line'] ?><br /> |
| 19 | Function: <?php echo $error['function'] ?> |
| 20 | </p> |
| 21 | <? endif ?> |
| 22 | |
Timothy Warren | 5600828 | 2011-10-13 11:59:44 -0300 | [diff] [blame] | 23 | <? endforeach ?></p> |
Timothy Warren | d609a59 | 2011-10-18 06:27:31 -0400 | [diff] [blame^] | 24 | |
Timothy Warren | 5600828 | 2011-10-13 11:59:44 -0300 | [diff] [blame] | 25 | <?php endif ?> |
admin | 2b47ea4 | 2006-10-24 00:15:02 +0000 | [diff] [blame] | 26 | </div> |