-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
89 lines (67 loc) · 2.79 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';
Util::isUser();
Util::isBanned();
require_once './app/controllers/cheatController.php';
require_once './app/controllers/userController.php';
$userController = new userController;
$cheatData = (new cheatController)->getCheatData();
$userCount = $userController->getCount();
$newestUser = $userController->getNew();
$hasSub = $userController->getSubscription() > 0;
Util::head($user['username']);
Util::navbar();
?>
<main class="container mt-2">
<div class="row">
<!--Welcome message-->
<div class="col-12 mt-3 mb-2">
<div class="alert alert-primary" role="alert">
Welcome back,
<a href="<?= (BASE_PATH); ?>profile.php"><b><?= Util::display($user['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"><?= Util::display($userCount); ?></p>
</div>
<!--Latest User-->
<div class="col-12 clearfix">
Latest User: <p class="float-right mb-0"><?= Util::display($newestUser); ?></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"><?= Util::display($cheatData->status); ?></p>
</div>
<!--Cheat version-->
<div class="col-12 clearfix">
Version: <p class="float-right mb-0"><?= Util::display($cheatData->version); ?></p>
</div>
<!-- Check if user has a sub -->
<?php if ($hasSub) : ?>
<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(); ?>