-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathindex.php
More file actions
42 lines (31 loc) · 688 Bytes
/
index.php
File metadata and controls
42 lines (31 loc) · 688 Bytes
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
<?php
$index_call = true;
require_once('inc/common.inc.php');
// log out admin user
if ($page == 'logout') {
// clear the session and cookies
session_unset();
session_destroy();
// NOW LOGGED OUT - goto login page
redirect('./?page=login');
exit;
}
require_once('inc/blocks/meta.inc.php');
?>
<body>
<?php
//include persistent menu
require_once('inc/blocks/menu.inc.php');
?>
<div id="wrapper">
<?php
//include persistent header
require_once('inc/blocks/head.inc.php');
// include page controller
require_once('inc/control.inc.php');
// include persistent footer
require_once('inc/blocks/foot.inc.php');
?>
</div>
</body>
</html>