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.

21 lines
690 B

7 years ago
  1. <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
  2. A PHP Error was encountered
  3. Severity: <?php echo $severity, "\n"; ?>
  4. Message: <?php echo $message, "\n"; ?>
  5. Filename: <?php echo $filepath, "\n"; ?>
  6. Line Number: <?php echo $line; ?>
  7. <?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
  8. Backtrace:
  9. <?php foreach (debug_backtrace() as $error): ?>
  10. <?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
  11. File: <?php echo $error['file'], "\n"; ?>
  12. Line: <?php echo $error['line'], "\n"; ?>
  13. Function: <?php echo $error['function'], "\n\n"; ?>
  14. <?php endif ?>
  15. <?php endforeach ?>
  16. <?php endif ?>