-
-
Notifications
You must be signed in to change notification settings - Fork 313
/
Copy path403.php
49 lines (43 loc) · 1.39 KB
/
403.php
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* 403 forbidden.
*
* @author Samerton
* @license MIT
* @version 2.2.0
*
* @var Cache $cache
* @var FakeSmarty $smarty
* @var Language $language
* @var Navigation $cc_nav
* @var Navigation $navigation
* @var Navigation $staffcp_nav
* @var Pages $pages
* @var TemplateBase $template
* @var User $user
* @var Widgets $widgets
*/
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
const PAGE = 403;
$page_title = '403';
require_once ROOT_PATH . '/core/templates/frontend_init.php';
// Load modules + template
Module::loadPage($user, $pages, $cache, $smarty, [$navigation, $cc_nav, $staffcp_nav], $widgets, $template);
$template->onPageLoad();
require ROOT_PATH . '/core/templates/navbar.php';
require ROOT_PATH . '/core/templates/footer.php';
// Assign template variables
$template->getEngine()->addVariables(
[
'403_TITLE' => $language->get('errors', '403_title'),
'CONTENT' => $language->get('errors', '403_content'),
'CONTENT_LOGIN' => $language->get('errors', '403_login'),
'BACK' => $language->get('errors', '403_back'),
'HOME' => $language->get('errors', '403_home'),
'LOGIN' => $language->get('general', 'sign_in'),
'LOGIN_LINK' => URL::build('/login'),
'PATH' => (defined('CONFIG_PATH') ? CONFIG_PATH : ''),
]
);
// Display template
$template->displayTemplate('403.tpl');