forked from znixbtw/php-panel-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
89 lines (63 loc) · 2.09 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
79
80
81
82
83
84
85
86
87
88
89
<?php
require_once 'app/require.php';
require_once 'app/controllers/CheatController.php';
$user = new UserController;
$cheat = new CheatController;
Session::init();
if (!Session::isLogged()) { Util::redirect('/login.php'); }
$username = Session::get("username");
Util::banCheck();
Util::head($username);
Util::navbar();
?>
<main class="container mt-2">
<div class="row">
<!--Welome message-->
<div class="col-12 mt-3 mb-2">
<div class="alert alert-primary" role="alert">
Welcome back, <a href="/profile.php"><b><?php Util::display($username) ?></b></a>.
</div>
</div>
<!--Statistics-->
<div class="col-lg-9 col-md-12">
<div class="rounded p-3 mb-3">
<div class="h5 border-bottom border-secondary pb-1"><i class="fas fa-chart-area"></i> Statistics</div>
<div class="row text-muted">
<!--Total Users-->
<div class="col-12 clearfix">
Users: <p class="float-right mb-0"><?php Util::display($user->getUserCount()); ?></p>
</div>
<!--Latest User-->
<div class="col-12 clearfix">
Latest User: <p class="float-right mb-0"><?php Util::display($user->getNewUser()); ?></p>
</div>
</div>
</div>
</div>
<!--Status-->
<div class="col-lg-3 col-md-12">
<div class="rounded p-3 mb-3">
<div class="h5 border-bottom border-secondary pb-1"><i class="fas fa-exclamation-circle"></i> Status</div>
<div class="row text-muted">
<!--Detected // Undetected-->
<div class="col-12 clearfix">
Status: <p class="float-right mb-0"><?php Util::display($cheat->getCheatData()->status); ?></p>
</div>
<!--Cheat version-->
<div class="col-12 clearfix">
Version: <p class="float-right mb-0"><?php Util::display($cheat->getCheatData()->version); ?></p>
</div>
<!-- Check if has sub -->
<?php if ($user->getSubStatus() > 0) : ?>
<div class="col-12 text-center pt-1">
<div class="border-top border-secondary pt-1">
<a href="/download.php">Download Loader</a>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</main>
<?php Util::footer(); ?>