aboutsummaryrefslogtreecommitdiffstats
path: root/system/403.php
blob: 08ef44dc07a110aedccc321b2d85593f89cbdef2 (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' => '403 Forbidden',
		'DESC' => "You don't have permission to access {$_SERVER['REQUEST_URI']} on this server."
	]);

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

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