Website/view/404.php

17 lines
362 B
PHP
Raw Normal View History

2023-03-21 17:23:14 +00:00
<?= 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'];
}
?>
2023-03-30 21:58:54 +00:00
<p>
You may choose to <a href="<?=htmlspecialchars($referer)?>">go back</a> or ponder.
</p>
2023-03-21 17:23:14 +00:00
2023-03-30 21:58:54 +00:00
<?= view('footer') ?>