liam-linux-account-manager/views/error404.php

14 lines
436 B
PHP
Raw Permalink Normal View History

2021-11-16 15:11:32 +01:00
<?php
$content = new PageSection('error404');
$content->set('address', $relative_request_url);
$content->set('fulladdress', $absolute_request_url);
$content->set('referrer', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '');
$page = new PageSection('base');
$page->set('title', 'Page not found');
$page->set('content', $content);
$page->set('alerts', array());
header('HTTP/1.1 404 Not Found');
echo $page->generate();