-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcore.php
More file actions
269 lines (215 loc) · 7.07 KB
/
core.php
File metadata and controls
269 lines (215 loc) · 7.07 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<?php
include 'config.php';
$config = include 'config.php';
session_start();
if (isset($_SESSION['sec-username'])) {
$uname = $_SESSION['sec-username'];
if ($uname != $config['username']) {
echo '<meta http-equiv="refresh" content="0; url=index.php" />';
exit;
}
} else {
echo '<meta http-equiv="refresh" content="0; url=index.php" />';
exit;
}
$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);
$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
function head()
{
include 'config.php';
$config = include 'config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<link rel="shortcut icon" href="assets/img/favicon.png">
<title>Malware Scanner › Admin Panel</title>
<!--STYLESHEET-->
<!--=================================================-->
<!--Bootstrap Stylesheet-->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/purple-skin.min.css">';
<!--Font Awesome-->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!--Switchery-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.css" rel="stylesheet">
<!--Stylesheet-->
<link href="assets/css/admin.min.css" rel="stylesheet">
<!--DataTables-->
<link href="assets/plugins/datatables/datatables.min.css" rel="stylesheet">
<!--DatePicker-->
<link href="assets/plugins/datepicker/datepicker.min.css" rel="stylesheet">
<!--SCRIPT-->
<!--=================================================-->
<!--jQuery-->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
<body class="hold-transition skin-purple sidebar-mini <?php
if ($config['fixed_layout'] == 'Yes') {
echo 'fixed';
}
?> <?php
if ($config['boxed_layout'] == 'Yes') {
echo 'layout-boxed';
}
?> <?php
if ($config['sidebar_collapsed'] == 'Yes') {
echo 'sidebar-collapse';
}
?>" onload="startTime()">
<div class="wrapper">
<header class="main-header">
<a href="dashboard.php" class="logo">
<span class="logo-mini">Malware<strong>Scanner</strong></span>
<span class="logo-lg">Malware <strong>Scanner</strong></span>
</a>
<nav class="navbar navbar-static-top">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li>
<a href="settings.php"><span><i class="fa fa-cogs"></i> Settings</span></a>
</li>
<?php
$uname = $_SESSION['sec-username'];
?>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="assets/img/avatar.png" class="user-image" alt="Admin Image">
<span class="hidden-xs"><?php
echo $_SESSION['sec-username'];
?></span>
</a>
<ul class="dropdown-menu">
<li class="user-header">
<img src="assets/img/avatar.png" class="img-circle" alt="Admin Image">
<p>
<?php
echo $_SESSION['sec-username'];
?>
</p>
</li>
<li class="user-footer">
<div class="pull-left">
<a href="account.php" class="btn btn-default btn-flat"><i class="fa fa-user fa-fw fa-lg"></i> Edit Profile</a>
</div>
<div class="pull-right">
<a href="logout.php" class="btn btn-default btn-flat"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
<div class="pull-left image">
<img src="assets/img/avatar.png" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
<br /><p><?php
echo $_SESSION['sec-username'];
?></p>
</div>
</div>
<ul class="sidebar-menu">
<li class="header">NAVIGATION</li>
<li <?php
if (basename($_SERVER['SCRIPT_NAME']) == 'dashboard.php') {
echo 'class="active"';
}
?>>
<a href="dashboard.php">
<i class="fa fa-home"></i> <span>Dashboard</span>
</a>
</li>
<li <?php
if (basename($_SERVER['SCRIPT_NAME']) == 'account.php') {
echo 'class="active"';
}
?>>
<a href="account.php">
<i class="fa fa-user"></i> <span>Account</span>
</a>
</li>
<li class="header">SECURITY</li>
<li <?php
if (basename($_SERVER['SCRIPT_NAME']) == 'malware-scanner.php') {
echo 'class="active"';
}
?>>
<a href="malware-scanner.php">
<i class="fa fa-search"></i> <span>Malware Scanner</span>
</a>
</li>
<li class="header">TOOLS</li>
<li <?php
if (basename($_SERVER['SCRIPT_NAME']) == 'security-check.php') {
echo 'class="active"';
}
?>>
<a href="security-check.php">
<i class="fa fa-check"></i> <span>Security Check</span>
</a>
</li>
</ul>
</section>
</aside>
<?php
}
function footer()
{
include 'config.php';
$config = include 'config.php';
?>
<footer class="main-footer">
<strong>© <?php
echo date("Y");
?> <a href="https://codecanyon.net/item/shell-scanner/5609275?ref=Antonov_WEB" target="_blank">Malware Scanner</a></strong>
</footer>
</div>
<!--JAVASCRIPT-->
<!--=================================================-->
<!--Bootstrap-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<?php
if ($config['sidebar_hover'] == 'Yes') {
echo '
<script>
var ThemeOptions = {
sidebarExpandOnHover: true
};
</script>';
}
?>
<!--Admin-->
<script src="assets/js/admin.min.js"></script>
<!--Fast Click-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>
<?php
if ($config['fixed_layout'] == 'Yes') {
echo '
<!--SlimScroll-->
<script src="assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>';
}
?>
<!--Switchery-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/switchery/0.8.2/switchery.min.js"></script>
<!--DataTables-->
<script src="assets/plugins/datatables/datatables.min.js"></script>
<!--DatePicker-->
<script src="assets/plugins/datepicker/datepicker.min.js"></script>
<script src="assets/plugins/datepicker/datepicker.en.js"></script>
</body>
</html>
<?php
}
?>