-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstats.php
More file actions
46 lines (39 loc) · 1.25 KB
/
Copy pathstats.php
File metadata and controls
46 lines (39 loc) · 1.25 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
<?php
session_start();
if (!$_SESSION['auth']) {
header('Location: stats_login.php');
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>STEM Stats</title>
<link href="assets/css/stats.css" rel="stylesheet">
</head>
<body>
<div id='header'>
<img src="images/logo.png" alt="">
<h1>Statistics</h1>
</div>
<div class='blocky'>
<span class='big-stat' id='total'><div>Total Requests</div><div class='num' id='totalNum'>0</div></span>
<span class='big-stat'><div>Today</div><div class='num' id='todayNum'>0</div></span>
<!-- <span class='big-stat'><div>This week</div><div class='num' id='weekNum'>10</div></span> -->
<span class='big-stat'><div>This month</div><div class='num' id='monthNum'>0</div></span>
</div>
<table id='all-emails'>
<tr class='thead'>
<th>Time</th>
<th>Email</th>
<th>ID</th>
</tr>
</table>
<canvas id="emailChart"></canvas>
<input id='logout' type='button' value='Logout' style='display: block; margin: auto; border-radius: 5px; margin-top: 3em; margin-bottom: 3em; font-size: 1.3em;'>
<!-- Charting script -->
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<!-- JS to load data -->
<script src='assets/js/stats.js'> </script>
</body>
</html>