Files
ops-Gazelle/sections/tools/data/platform_usage.php
T

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(),
]);