-
-
Notifications
You must be signed in to change notification settings - Fork 311
/
403.php
41 lines (34 loc) · 1.15 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
<?php
/*
* Made by Samerton
* https://github.com/NamelessMC/Nameless/
* NamelessMC version 2.0.0-pr8
*
* License: MIT
*
* 403 Forbidden page
*/
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 Smarty variables
$smarty->assign(
[
'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', $smarty);