forked from nerdzeu/nerdz.eu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.php
executable file
·32 lines (30 loc) · 1017 Bytes
/
error.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
<?php
ob_start('ob_gzhandler');
require_once $_SERVER['DOCUMENT_ROOT'].'/class/autoload.php';
$user = new NERDZ\Core\User();
$tplcfg = $user->getTemplateCfg();
ob_start(array('NERDZ\\Core\\Utils','minifyHTML'));
?>
<!DOCTYPE html>
<html lang="<?php echo $user->getBoardLanguage();?>">
<head>
<meta name="author" content="Paolo Galeone" />
<meta name="keywords" content="nerdz, social network, user profile, paste, source code, programming" />
<meta name="robots" content="index,follow" />
<title><?= NERDZ\Core\Utils::getSiteName(), ' - ', $user->lang('ERROR');?></title>
<?php
$headers = $tplcfg->getTemplateVars('error');
require_once $_SERVER['DOCUMENT_ROOT'].'/pages/common/jscssheaders.php';
?>
</head>
<?php ob_flush(); ?>
<body>
<div id="body">
<?php
require_once $_SERVER['DOCUMENT_ROOT'].'/pages/header.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/pages/error.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/pages/footer.php';
?>
</div>
</body>
</html>