-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathheader.php
More file actions
156 lines (127 loc) · 4.82 KB
/
header.php
File metadata and controls
156 lines (127 loc) · 4.82 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
session_start();
include_once("config.php");
include_once("lib/functions.php");
$username = $_SESSION['username'];
$function = new general();
$pid = $function->getPID($username, $db);
if($username == "") {
$username = "Guest";
}
if ($username != 'Guest') {
$loginout = "<a class='dropdown-item' href='logout.php'><i class='ti-power-off'></i> Logout</a>";
$addserverbutton = "
<li class='menu-category'>Admin Area</li>
<li class='menu-item'>
<a class='menu-link' href='addserver.php'>
<span class='icon fa fa-plus'></span>
<span class='title'>Add Server</span>
</a>
</li>
<li class='menu-item'>
<a class='menu-link' href='settings.php'>
<span class='icon fa fa-gear'></span>
<span class='title'>Pushbullet</span>
</a>
</li>
<li class='menu-item'>
<a class='menu-link' href='cron.php'>
<span class='icon fa fa-refresh'></span>
<span class='title'>Update data</span>
</a>
</li>
";
} else {
$loginout = "<a class='dropdown-item' href='login.php'><i class='ti-power-off'></i> Login</a>";
$addserverbutton = "";
}
if(isset($_SESSION['admin']) && $_SESSION['admin'] = 1) {
$title = "Administrator";
$regdate = "Member since: A while ago";
$myaccount = "<a class='dropdown-item' href='account.php?pid=$pid'><i class='ti-settings'></i> My Account</a>";
} else {
$title = "Guest";
$regdate = "Please log in to show statics";
}
$extra = file_get_contents('https://www.peppercloud.nl/res/sslchecker.txt', FILE_USE_INCLUDE_PATH);
echo "
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no'>
<meta name='description' content='Responsive admin dashboard and web application ui kit. '>
<meta name='keywords' content='blank, starter'>
<meta http-equiv='refresh' content='1200' >
<title>Dashboard — PepperSSL</title>
<!-- Fonts -->
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,300i' rel='stylesheet'>
<!-- PepperScript -->
<script src='assets/plugin/pepperSSL/pepper.js'></script>
<!-- Styles -->
<link href='assets/css/core.min.css' rel='stylesheet'>
<link href='assets/css/app.min.css' rel='stylesheet'>
<link href='assets/css/pepper.css' rel='stylesheet'>
<!-- Favicons -->
<link rel='apple-touch-icon' href='assets/img/apple-touch-icon.png'>
<link rel='icon' href='assets/img/favicon.png'>
</head>
<body onload='updateStatus1();' onload='ajax();''>
<!-- Preloader -->
<div class='preloader'>
<div class='spinner-dots'>
<span class='dot1'></span>
<span class='dot2'></span>
<span class='dot3'></span>
</div>
</div>
<!-- Sidebar -->
<aside class='sidebar sidebar-icons-right sidebar-icons-boxed sidebar-expand-lg purple'>
<header class='sidebar-header bg-purple'>
<a class='logo-icon' href='../index.php'><img src='assets/img/logo-icon-light.png' height='26px' width='26px' alt='logo icon'></a>
<span class='logo'>
<a href='../index.php'><img src='assets/img/logo-light.png' height='36px' width='75px' alt='logo'></a>
</span>
<span class='sidebar-toggle-fold'></span>
</header>
<nav class='sidebar-navigation'>
<ul class='menu'>
<li class='menu-item'>
<a class='menu-link' href='index.php'>
<span class='icon fa fa-home'></span>
<span class='title'>Dashboard</span>
</a>
</li>
<li class='menu-item'>
<a class='menu-link' href='https://github.com/pernodpepper/SSLChecker/releases'>
<span class='icon fa fa-info'></span>
<span class='title'>Info</span>
</a>
</li>
$addserverbutton
$extra
</ul>
</nav>
</aside>
<!-- END Sidebar -->
<!-- Topbar -->
<header class='topbar topbar-inverse bg-purple'>
<div class='topbar-left'>
<button class='topbar-btn sidebar-toggler'>☰</button>
<h3 class='topbar-title'>SSLChecker</h3>
</div>
<div class='topbar-right'>
<ul class='topbar-btns'>
<li class='dropdown'>
<span class='topbar-btn' data-toggle='dropdown'><img class='avatar avatar-sm' src='../assets/img/user.jpg' alt='...'></span>
<div class='dropdown-menu dropdown-menu-right'>
$myaccount
<div class='dropdown-divider'></div>
$loginout
</div>
</li>
</ul>
</div>
</header>
<!-- END Topbar -->
";
?>