You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
835 B

7 years ago
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. ?>
  4. <div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
  5. <h4>A PHP Error was encountered</h4>
  6. <p>Severity: <?php echo $severity; ?></p>
  7. <p>Message: <?php echo $message; ?></p>
  8. <p>Filename: <?php echo $filepath; ?></p>
  9. <p>Line Number: <?php echo $line; ?></p>
  10. <?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
  11. <p>Backtrace:</p>
  12. <?php foreach (debug_backtrace() as $error): ?>
  13. <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
  14. <p style="margin-left:10px">
  15. File: <?php echo $error['file'] ?><br />
  16. Line: <?php echo $error['line'] ?><br />
  17. Function: <?php echo $error['function'] ?>
  18. </p>
  19. <?php endif ?>
  20. <?php endforeach ?>
  21. <?php endif ?>
  22. </div>