false, 'text' => '']; if (!cfg('dumb.enabled')) json_out($empty); $path = (string) ($_POST['path'] ?? $_GET['path'] ?? ''); if (!preg_match('#^/\d+/[^/]+/[^/]+/annotations$#', $path)) json_out($empty); $raw = http_get(cfg('dumb.url') . $path, 5); if ($raw === null) json_out($empty); $body = (string) dot_get(json_decode($raw, true), 'body.html', ''); if ($body === '') json_out($empty); $text = trim(container_to_text($body)); json_out(['found' => $text !== '', 'text' => $text]);