Files
reflector-dashboard/auth/user_events.php
T
bjorneandClaude Fable 5.1 25b481e2ae Public web-only release: SvxPortal front-end + auth backend, install templates and INSTALL.md
Stripped from the internal repo: per-box deploy trees, Go services (nodelist/astmeta/proxy/svxdr),
deploy/sync scripts and all secrets. Config templates for nginx, PHP-FPM, Redis and tmpfiles
live in install/ with CHANGEME placeholders.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-26 23:07:05 +02:00

18 lines
355 B
PHP

<?php
declare(strict_types=1);
require __DIR__ . '/lib.php';
$uuid = require_login();
$r = redis();
$events = $r->lRange(rkey("user_events:$uuid"), 0, 49);
$list = [];
if (is_array($events)) {
foreach ($events as $e) {
$d = json_decode($e, true);
if (is_array($d)) $list[] = $d;
}
}
json_out(['ok' => true, 'events' => $list]);