aboutsummaryrefslogtreecommitdiffstats
path: root/system/404.php
blob: a92e9d6cc26541115639535a3516c7abb7564fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
#===============================================================================
# INCLUDE: Main configuration
#===============================================================================
if(!defined('ROOT')) {
	require_once '../core/application.php';
}

#===============================================================================
# TRY: Template\Exception
#===============================================================================
try {
	$MainTemplate = Template\Factory::build('main');
	$MainTemplate->set('HEAD', [
		'NAME' => '404 Not Found',
		'DESC' => "The requested URL {$_SERVER['REQUEST_URI']} was not found on this server."
	]);

	$MainTemplate->set('HTML', Template\Factory::build('404'));
	echo $MainTemplate;
}

#===============================================================================
# CATCH: Template\Exception
#===============================================================================
catch(Template\Exception $Exception) {
	$Exception->defaultHandler();
}
?>