aboutsummaryrefslogtreecommitdiffstats
path: root/system/404.php
blob: 15532910f340d580f0c30f22b3be6061a9c654ae (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
30
<?php
#===============================================================================
# INCLUDE: Main configuration
#===============================================================================
if(!defined('ROOT')) {
	require_once '../core/application.php';
}

#===============================================================================
# TRY: Template\Exception
#===============================================================================
try {
	$MainTemplate = Template\Factory::build('main');
	$MainTemplate->set('NAME', '404 Not Found');
	$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();
}
?>