mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-01 14:07:54 -05:00
- Replaced TRUE/FALSE constants with true/false keywords - Replaced NULL constant with null keyword - Replaced `<?php echo` in views with shortened `<?=` - Added missing variable declaration - Added missing function return type in declaration - replaced `== true`, `== false`, `=== true` and `=== false` in if statements with simplified forms
38 lines
824 B
PHP
38 lines
824 B
PHP
<?php
|
|
/**
|
|
* @var string $severity
|
|
* @var string $message
|
|
* @var string $filepath
|
|
* @var int $line
|
|
*/
|
|
?>
|
|
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
|
|
|
<h4>A PHP Error was encountered</h4>
|
|
|
|
<p>Severity: <?= esc($severity) ?></p>
|
|
<p>Message: <?= esc($message) ?></p>
|
|
<p>Filename: <?= esc($filepath) ?></p>
|
|
<p>Line Number: <?= $line ?></p>
|
|
|
|
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE): ?>
|
|
|
|
<p>Backtrace:</p>
|
|
<?php foreach (debug_backtrace() as $error): ?>
|
|
|
|
<?php if (isset($error['file']) && strpos($error['file'], realpath(ROOTPATH)) !== 0): ?>
|
|
|
|
<p style="margin-left:10px">
|
|
File: <?= $error['file'] ?><br />
|
|
Line: <?= $error['line'] ?><br />
|
|
Function: <?= $error['function'] ?>
|
|
</p>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</div>
|