-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathheader.php
96 lines (85 loc) · 4.24 KB
/
header.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
if(basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)) die("Access denied");
ob_start();
require_once 'includes/app/config.php';
require_once 'includes/app/init.php';
if (!(empty($maintaince))) {
header('Location: maintenance.php');
exit;
}
if (!($user -> LoggedIn()) || !($user -> notBanned($odb))){
header('location: login.php');
die();
}
?>
<!DOCTYPE html>
<html lang="ru">
<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="">
<meta name="author" content="">
<link rel="icon" type="image/png" sizes="16x16" href="../plugins/images/favicon.png">
<title> MaoStress -> <?php echo $page; ?></title>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/titleanim.js"></script>
<!-- Bootstrap Core CSS -->
<link href="includes/theme/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Menu CSS -->
<link href="includes/theme/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css" rel="stylesheet">
<!-- morris CSS -->
<link href="includes/theme/plugins/bower_components/morrisjs/morris.css" rel="stylesheet">
<?php if($page == "Home") { ?> <!-- Vector CSS -->
<link href="includes/theme/plugins/bower_components/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet" />
<script src="includes/theme/plugins/bower_components/jquery/dist/jquery.min.js"></script> <?php } ?>
<?php if($page == "Attack Hub") { ?> <!-- Vector CSS -->
<script src="includes/theme/plugins/bower_components/jquery/dist/jquery.min.js"></script><?php } ?>
<!-- animation CSS -->
<link href="includes/theme/css/animate.css" rel="stylesheet">
<!-- Custom CSS -->
<link href="includes/theme/css/style.css" rel="stylesheet">
<!-- color CSS -->
<link href="includes/theme/css/colors/default-dark.css" id="theme" rel="stylesheet">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.bundle.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Preloader -->
<div class="preloader">
<div class="cssload-speeding-wheel"></div>
</div>
<!-- Left navbar-header -->
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse slimscrollsidebar">
<ul class="nav" id="side-menu">
<?php
/// Guest Only See Main Menu (You have to be member to see the hub)
?>
<li class="nav-small-cap m-t-10">⠀⠀⠀⠀⠀⠀⠀Main Menu</li>
<li> <a href="home.php" class="waves-effect"><i class="icon-home" data-icon="v"></i> <span class="hide-menu"> Dashboard </span></a></li>
<li> <a href="https://t.me/maostress" class="waves-effect"><i class="fa fa-paper-plane" aria-hidden="true"></i> <span class="hide-menu">⠀Telegram </span></a></li>
<li> <a href="plans.php" class="waves-effect"><i class="fa fa-usd fa-fw" data-icon="v"></i> <span class="hide-menu"> Plans </span></a></li>
<?php
/// The can only been seen by membership active now
?>
<li class="nav-small-cap">⠀⠀⠀⠀⠀⠀⠀Misc Menu</li>
<li> <a href="giftcards.php" class="waves-effect"><i class="fa fa-credit-card fa-fw" data-icon="v"></i> <span class="hide-menu"> Redeem Code</span></a></li>
<li> <a href="hub.php" class="waves-effect"><i class="fa fa-bomb fa-fw" data-icon="v"></i> <span class="hide-menu"> Attack Hub </span></a></li>
<li> <a href="tools.php" class="waves-effect"><i class="fa fa-wrench fa-fw" data-icon="v"></i> <span class="hide-menu"> Tools </span></a></li>
<?php
/// Admin Panel (Only Admins can see this)
if ($user -> isAdmin($odb)){
?>
<li class="nav-small-cap">⠀⠀⠀Administration Tools</li>
<li> <a href="/admin" class="waves-effect"><i class="fa fa-settings fa-fw" data-icon="v"></i> <span class="hide-menu"> Admin Panel <span class="fa arrow"></span></span> </a></li>
<?php }?>
</ul>
</div>
</div>
<!-- Left navbar-header end -->