2012-01-04 19:47:32 -05:00
|
|
|
<div style="position:relative; margin:0.5em auto; padding:0.5em; width:95%; border:1px solid #924949; background: #f3e6e6;">
|
2011-12-27 13:24:28 -05:00
|
|
|
<h4>A PHP Error was encountered</h4>
|
|
|
|
|
|
|
|
<p>Severity: <?php echo $severity; ?></p>
|
|
|
|
<p>Message: <?php echo $message; ?></p>
|
|
|
|
<p>Filename: <?php echo $filepath; ?></p>
|
|
|
|
<p>Line Number: <?php echo $line; ?></p>
|
|
|
|
|
|
|
|
<?php if(defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
|
|
|
|
|
|
|
<p>Backtrace: </p>
|
|
|
|
<?php foreach(debug_backtrace() as $error): ?>
|
|
|
|
|
2011-12-27 16:47:27 -05:00
|
|
|
<?php if(isset($error['file']) && ! stristr($error['file'], SYS_PATH)): ?>
|
2011-12-27 13:24:28 -05:00
|
|
|
<p style="margin-left:10px">
|
2012-01-04 19:47:32 -05:00
|
|
|
File: <?php echo str_replace(BASE_PATH, "", $error['file']) ?><br />
|
2011-12-27 13:24:28 -05:00
|
|
|
Line: <?php echo $error['line'] ?><br />
|
|
|
|
Function: <?php echo $error['function'] ?>
|
|
|
|
</p>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php endforeach ?></p>
|
|
|
|
|
|
|
|
<?php endif ?>
|
|
|
|
</div>
|