Website/view/404.php

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') ?>