mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-05 04:13:09 -04:00
19 lines
387 B
PHP
19 lines
387 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
/** @phpstan-var \Twig\Environment $Twig */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
if (!$Viewer->permitted('site_debug')) {
|
|
Error403::error();
|
|
}
|
|
|
|
$stats = new Stats\Users();
|
|
|
|
echo $Twig->render('admin/platform-usage.twig', [
|
|
'os_list' => $stats->operatingSystemList(),
|
|
'browser_list' => $stats->browserList(),
|
|
]);
|