mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-06 07:13:05 -04:00
24 lines
535 B
PHP
24 lines
535 B
PHP
<?php
|
|
|
|
if (!$Viewer->permitted('admin_bp_history')) {
|
|
error(403);
|
|
}
|
|
|
|
$bonus = new Gazelle\Stats\Bonus;
|
|
$day = [];
|
|
$week = [];
|
|
$month = [];
|
|
foreach (range(0, 6) as $n) {
|
|
$day[] = $bonus->accrualRange('DAY', $n, 1);
|
|
$week[] = $bonus->accrualRange('WEEK', $n, 1);
|
|
$month[] = $bonus->accrualRange('MONTH', $n, 1);
|
|
}
|
|
|
|
echo $Twig->render('admin/bonus-stats.twig', [
|
|
'bonus' => $bonus,
|
|
'day' => $day,
|
|
'week' => $week,
|
|
'month' => $month,
|
|
'fl' => (new Gazelle\Stats\Users)->stockpileTokenList(10),
|
|
]);
|