PHP Classes

File: resources/views/system_errors/view.error.php

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   Luminova Framework   resources/views/system_errors/view.error.php   Download  
File: resources/views/system_errors/view.error.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Luminova Framework
PHP Luminova framework: simple, powerful MVC/HMVC.
Author: By
Last change: New update and changes
New update and changes
New update and changes
Date: 1 month ago
Size: 2,403 bytes
 

Contents

Class file image Download
<?php
$message
= $exception->getFilteredMessage();
$searchable = urlencode($message . ' PHP Luminova Framework');
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="robots" content="noindex">
    <meta http-equiv="Cache-Control" content="no-store, max-age=0, no-cache"/>
    <link rel="shortcut icon" type="image/png" href="<?= href('favicon.png');?>">
    <title>View Error Occurred - <?= htmlspecialchars($title ?? $exception::class, ENT_QUOTES) ?></title>
    <style> <?= preg_replace('#[\r\n\t ]+#', ' ', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')) ?> </style>
    <script>function toggle(id){ event.preventDefault(); var element=document.getElementById(id); if (element.style.display==="none"){ element.style.display="block";} else{ element.style.display="none";}} </script>
</head>
<body>
    <div class="header">
        <div class="container mt-4 <?= SHOW_DEBUG_BACKTRACE ?: 'main-container';?>">
            <h1><?= htmlspecialchars(($title ?? $exception::class) . ($exception->getCode() ? ' #' . $exception->getCode() : ''), ENT_QUOTES); ?></h1>
            <p><?= nl2br(htmlspecialchars($message, ENT_QUOTES)) ?> Thrown in file: <?= filter_paths($exception->getFile());?> on line: <?= $exception->getLine();?></p>
            <p class="mt-2">
                <a class="button" href="https://www.duckduckgo.com/?q=<?= $searchable; ?>" rel="noreferrer" target="_blank">Search Online &rarr;</a>
                <a class="button" href="https://luminova.ng/forum/search?q=<?= $searchable;?>" rel="noreferrer" target="_blank">Search Forum &#128270;</a>
                <a class="button" href="https://github.com/luminovang/luminova/issues/new?labels=bug&title=<?= $searchable;?>" rel="noreferrer" target="_blank">Open Issue &#128030;</a>
            </p>
        </div>
    </div>

    <?php
   
if (SHOW_DEBUG_BACKTRACE) :
        include_once
__DIR__ . DIRECTORY_SEPARATOR . 'tracer.php';
       
onErrorShowDebugTracer($exception->getBacktrace());
    endif;
   
?>

    <div class="footer">
        <div class="container">
            <p>
                Displayed at <?= date('H:i:sA') ?> &mdash;
                PHP: <?= PHP_VERSION ?> &mdash;
                Luminova: <?= \Luminova\Application\Foundation::VERSION ?> &mdash;
                Environment: <?= ENVIRONMENT ?>
</p>
        </div>
    </div>
</body>
</html>