mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-04 19:13:04 -04:00
21 lines
535 B
PHP
21 lines
535 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
/** @phpstan-var \Twig\Environment $Twig */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
if (!$Viewer->permitted('site_view_flow')) {
|
|
Error403::error();
|
|
}
|
|
|
|
$userMan = new Manager\User();
|
|
echo $Twig->render('admin/stats/torrent.twig', [
|
|
'notification' => new Manager\Notification(),
|
|
'reaper' => new Torrent\Reaper(new Manager\Torrent(), $userMan),
|
|
'torr_stat' => new Stats\Torrent(),
|
|
'user_stat' => new Stats\Users(),
|
|
'user_man' => $userMan,
|
|
]);
|