<?php  if (!defined('DASHBOARD_ROOT')) { http_response_code(403); exit; } function renderTerminal(int $nodeId): string { $node=FleetOrchestrator::getNode($nodeId); if(!$node)return UI::alert("Node not found","error"); return "<div class=\"terminal\"><h3>Terminal: ".UI::e($node["node_id"])."</h3><div id=\"term-output\" class=\"term-output\"></div><form data-submit=\"execCommand\" data-id=\"{$nodeId}\"><input type=\"text\" id=\"term-input\" placeholder=\"Enter command...\" autocomplete=\"off\"><button type=\"submit\" class=\"btn\">Execute</button></form><p class=\"term-warning\">Commands are restricted to whitelist and fully audited.</p></div>"; } 