forked from nerdzeu/nerdz.eu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookmarks.php
executable file
·36 lines (33 loc) · 1.05 KB
/
bookmarks.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
<?php
ob_start('ob_gzhandler');
require_once $_SERVER['DOCUMENT_ROOT'].'/class/autoload.php';
use NERDZ\Core\User;
$user = new User();
if(!$user->isLogged())
die(header('Location: /'));
$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(); ?> - Bookmarks </title>
<?php
$headers = $tplcfg->getTemplateVars('bookmarks');
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/bookmarks.php';
require_once $_SERVER['DOCUMENT_ROOT'].'/pages/footer.php';
?>
</div>
</body>
</html>