<?php  if (!defined('DASHBOARD_ROOT')) { http_response_code(403); exit; } $events=Events::byCategory(Events::CAT_SECURITY,50); $headers=["ID","Action","Target","Admin","IP","Time"]; $rows=[]; foreach($events as $e){$rows[]=[$e["id"],UI::e($e["action"]),UI::e(($e["target_type"]??"").":".($e["target_id"]??"")),($e["admin_id"]??"System"),$e["ip_address"]??"",$e["created_at"]];} echo "<div class=\"security-events\"><h3>Security Events</h3>".UI::table($headers,$rows,"tbl-security-events")."</div>"; 