blob: 46c519870c5f2e066d5000a02ddaf5a70a52c6c1 (
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', '403 Forbidden');
$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();
}
?>
|