Website/view/404.php

18 lines
349 B
PHP
Raw Normal View History

2023-03-21 17:23:14 +00:00
<?= view('header', ['title' => 'Page not found']) ?>
<h1>Page not found</h1>
<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'];
}
?>
<a href="<?=htmlspecialchars($referer)?>">Return</a>
<?= view('footer') ?>