<?php
/**
 * animal-submit.php — DEPRECATED
 *
 * Superseded by /controllers/animalTestSubmit.php
 * which uses PDO prepared statements, CSRF protection, and proper auth.
 */

require_once __DIR__ . '/../../../config/database.php';
require_once __DIR__ . '/../../../lib/auth.php';

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

requireLogin();

http_response_code(410);
echo '<p>This endpoint is no longer active. '
   . 'Please update the form action to <code>/controllers/animalTestSubmit.php</code>.</p>';
exit;
