-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
60 lines (47 loc) · 1.48 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
<?php
/*
simpson
*/
session_start();
require_once __DIR__ . '/inc/functions/database.php';
require_once __DIR__ . '/inc/functions/session.php';
require_once __DIR__ . '/inc/functions/pages.php';
require_once __DIR__ . '/inc/functions/templates.php';
require_once __DIR__ . '/inc/functions/menu.php';
require_once __DIR__ . '/inc/functions/misc.php';
require_once __DIR__ . '/inc/config/strings.php';
$currentPage = getCurrentPage();
$database = getDatabase();
?><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?= SITE_NAME ?></title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Merriweather+Sans:300,300i,700" />
<link rel="stylesheet" type="text/css" href="<?= BASE_PATH ?>/css/main.css" />
<link rel="stylesheet" type="text/css" href="<?= BASE_PATH ?>/css/user.css" />
<link rel="stylesheet" type="text/css" href="<?= BASE_PATH ?>/css/messages.css" />
<link rel="stylesheet" type="text/css" href="<?= BASE_PATH ?>/css/form.css" />
<link rel="stylesheet" type="text/css" href="<?= BASE_PATH ?>/css/mobile.css" />
</head>
<body>
<header>
<?php
renderMenu();
?>
</header>
<div class="main">
<?php
renderCurrentPage();
updateLastActivityTime();
?>
</div>
<footer>
<p>
powered by <em>simpson</em>.
</p>
</footer>
<script type="text/javascript" src="<?= BASE_PATH ?>/js/main.js"></script>
</body>
</html>