forked from NamelessMC/Nameless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
78 lines (70 loc) · 1.51 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/*
* Made by Samerton
* http://worldscapemc.co.uk
*
* License: MIT
*/
// Mod check
if($user->isLoggedIn()){
if(!$user->canViewMCP($user->data()->id)){
Redirect::to('/');
die();
}
} else {
Redirect::to('/');
die();
}
// page for ModCP sidebar
$mod_page = 'index';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Moderator panel">
<meta name="author" content="Samerton">
<meta name="robots" content="noindex">
<?php if(isset($custom_meta)){ echo $custom_meta; } ?>
<?php
// Generate header and navbar content
// Page title
$title = $mod_language['mod_cp'];
require('core/includes/template/generate.php');
?>
<!-- Custom style -->
<style>
html {
overflow-y: scroll;
}
</style>
</head>
<body>
<?php
// Load navbar
$smarty->display('styles/templates/' . $template . '/navbar.tpl');
?>
<br />
<div class="container">
<div class="row">
<div class="col-md-3">
<?php require('pages/mod/sidebar.php'); ?>
</div>
<div class="col-md-9">
<div class="well well-sm">
Nothing here yet, please use the navigation on the left
</div>
</div>
</div>
</div>
<?php
// Footer
require('core/includes/template/footer.php');
$smarty->display('styles/templates/' . $template . '/footer.tpl');
// Scripts
require('core/includes/template/scripts.php');
?>
</body>
</html>