getMessage(); } renderCollectorPage( $challenge, $error, scalarRequestValue('status', 24) ?? '', ); } catch (CollectorError $problem) { if (wantsJson()) { $payload = ['error' => $problem->getMessage()]; if (!challengeIsUsable($_SESSION['panel_challenge'] ?? null)) { $payload['challenge'] = null; } jsonResponse($payload, $problem->status); } http_response_code($problem->status); $fallbackChallenge = challengeIsUsable($_SESSION['panel_challenge'] ?? null) ? $_SESSION['panel_challenge'] : null; renderCollectorPage($fallbackChallenge, $problem->getMessage(), ''); } catch (Throwable $problem) { error_log((string) $problem); if (wantsJson()) { jsonResponse(['error' => 'Unexpected server error. Check the PHP error log.'], 500); } http_response_code(500); renderCollectorPage(null, 'Unexpected server error. Check the PHP error log.', ''); } function respondWithNextChallenge(array $config, string $outcome): never { $challenge = null; $warning = null; try { $challenge = ensurePanelChallenge($config, true); } catch (CollectorError $problem) { $warning = $problem->getMessage(); } if (wantsJson()) { jsonResponse([ 'outcome' => $outcome, 'message' => outcomeMessage($outcome), 'saved_this_session' => (int) ($_SESSION['saved_this_session'] ?? 0), 'challenge' => $challenge === null ? null : challengePayload($challenge), 'warning' => $warning, ]); } redirect('./?status=' . rawurlencode($outcome)); } function renderCollectorPage(?array $challenge, ?string $error, string $status): never { $notices = [ 'saved' => 'Correct — the captcha was saved.', 'duplicate' => 'Correct — this exact image was already saved.', 'rejected' => 'That answer was rejected. Here is a new captcha.', 'skipped' => 'A new captcha is ready.', ]; $notice = $error ?? ($notices[$status] ?? ''); $noticeClass = $error === null ? '' : ' error'; $saved = (int) ($_SESSION['saved_this_session'] ?? 0); $csrf = localCsrfToken(); ?> Panel captcha collector

OCR dataset

Captcha collector

saved this session

>

No captcha is available

The panel could not provide a usable challenge. Check the message above and try again.

Try again
Security code to transcribe

Answers are stored only after the panel confirms a successful login.