Website/view/404.php
2023-03-30 23:58:54 +02:00

17 lines
362 B
PHP

<?= view('header', ['title' => 'Page not found']) ?>
<p>Sorry, the page you requested could not be found on this server.</p>
<?php
if (!isset($_SERVER['HTTP_REFERER'])) {
$referer = url('/');
} else {
$referer = $_SERVER['HTTP_REFERER'];
}
?>
<p>
You may choose to <a href="<?=htmlspecialchars($referer)?>">go back</a> or ponder.
</p>
<?= view('footer') ?>