-
Notifications
You must be signed in to change notification settings - Fork 0
/
statistics.php
76 lines (63 loc) · 3.21 KB
/
statistics.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
<?php
$title = "Statistics";
require_once "./app/components/header.php";
?>
<main id="main">
<section id="features" class="features">
<div class="container" data-aos="fade-up">
<div class="row">
<div class="row feature-icons" data-aos="fade-up">
<div class="row">
<div class="col-xl-4 text-center" data-aos="fade-right" data-aos-delay="100">
<img src="assets/img/features-3.png" class="img-fluid p-4" alt="">
</div>
<div class="col-xl-8 d-flex content">
<div class="row align-self-center gy-4">
<div class="col-md-6 icon-box" data-aos="fade-up">
<div>
<h4>Evolving</h4>
<p>With <strong id="users">0</strong> actives users, our website is constantly evolving.</p>
</div>
</div>
<div class="col-md-6 icon-box" data-aos="fade-up" data-aos-delay="100">
<div>
<h4>Known</h4>
<p>A known tech stack with Linux, Apache, PHP, MariaDB.</p>
</div>
</div>
<div class="col-md-6 icon-box" data-aos="fade-up" data-aos-delay="200">
<div>
<h4>Secure</h4>
<p>Secure and safe thanks to good development practice.</p>
</div>
</div>
<div class="col-md-6 icon-box" data-aos="fade-up" data-aos-delay="300">
<div>
<h4>Administration</h4>
<p>A very good administration team with <strong id="admins">0</strong> administrators</p>
</div>
</div>
<div class="col-md-6 icon-box" data-aos="fade-up" data-aos-delay="400">
<div>
<h4>Active chat</h4>
<p>With <strong id="messages">0</strong> messages sended on this chat
</div>
</div>
</div>
</div>
</div>
</div>
</div> <!-- / row -->
</div>
</section>
</main>
<script>
fetch("/app/api/stats.php").then((response) => {
response.json().then((data) => {
document.getElementById("users").innerText = data[0].users;
document.getElementById("admins").innerText = data[1].admins;
document.getElementById("messages").innerText = data[2].messages;
});
});
</script>
<?php require_once "./app/components/footer.php"; ?>