From 6feb5fe0d45196af4a9b2b058cefdd15f6007522 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 11 Apr 2017 04:10:46 +0200 Subject: Error pages for HTTP status code 403 and 404 moved to another location (preparations for the next commits in which the system directory will be moved to a non-public directory). --- 404.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 404.php (limited to '404.php') diff --git a/404.php b/404.php new file mode 100644 index 0000000..be2ca1b --- /dev/null +++ b/404.php @@ -0,0 +1,32 @@ +set('NAME', '404 Not Found'); + $MainTemplate->set('HEAD', ['NAME' => '404 Not Found']); + $MainTemplate->set('HTML', Template\Factory::build('404')); + + echo $MainTemplate; +} + +#=============================================================================== +# CATCH: Template\Exception +#=============================================================================== +catch(Template\Exception $Exception) { + $Exception->defaultHandler(); +} +?> \ No newline at end of file -- cgit v1.2.3