<?php  if (!defined('DASHBOARD_ROOT')) { http_response_code(403); exit; } $checks=["DB Connection"=>true,"Session Active"=>session_status()===PHP_SESSION_ACTIVE,"Encryption Key"=>file_exists(PRIVATE_DIR."/encryption.key"),"HMAC Key"=>file_exists(PRIVATE_DIR."/fleet_hmac.secret"),"Upload Dir"=>is_writable(UPLOAD_QUARANTINE_DIR)]; echo "<div class=\"health-feed\"><h3>Internal Health</h3>"; foreach($checks as $name=>$ok){echo "<div class=\"health-row\"><span>".UI::e($name)."</span>".UI::badge($ok?"OK":"FAIL",$ok?"success":"danger")."</div>";} echo "</div>"; 