-
Notifications
You must be signed in to change notification settings - Fork 11
/
stats.php
49 lines (45 loc) · 1.17 KB
/
stats.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
<?php
require_once 'inc/conf.php';
require_once 'inc/Casimir.php';
$casimir = new Casimir();
$mostused_day = $casimir->getMostUsedLastDays(1, 5);
$mostused_week = $casimir->getMostUsedLastDays(7, 5);
$mostused_month = $casimir->getMostUsedLastDays(30, 5);
$mostused_ever = $casimir->getMostUsedSinceDate();
require_once 'inc/header.php';
?>
<h3><?php echo _("Most followed short URLs"); ?></h3>
<ul class="tablinks">
<li><a href="#lastday"><?php echo _("Last day"); ?></a></li>
<li><a href="#lastweek"><?php echo _("Last week"); ?></a></li>
<li><a href="#lastmonth"><?php echo _("Last month"); ?></a></li>
<li><a href="#ever"><?php echo _("Ever"); ?></a></li>
</ul>
<div class="tabs">
<div id="lastday">
<h4><?php echo _("Last day"); ?></h4>
<?php
echo $mostused_day;
?>
</div>
<div id="lastweek">
<h4><?php echo _("Last week"); ?></h4>
<?php
echo $mostused_week;
?>
</div>
<div id="lastmonth">
<h4><?php echo _("Last month"); ?></h4>
<?php
echo $mostused_month;
?>
</div>
<div id="ever">
<h4><?php echo _("Ever"); ?></h4>
<?php
echo $mostused_ever;
?>
</div>
</div>
<?php
require_once 'inc/footer.php';