generating-plant-analysis.php 550 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * generating-plant-analysis.php — DEPRECATED
  4. *
  5. * Superseded by /controllers/plantTestSubmit.php
  6. * which uses PDO prepared statements, CSRF protection, and proper auth.
  7. */
  8. require_once __DIR__ . '/../../../config/database.php';
  9. require_once __DIR__ . '/../../../lib/auth.php';
  10. if (session_status() === PHP_SESSION_NONE) {
  11. session_start();
  12. }
  13. requireLogin();
  14. http_response_code(410);
  15. echo '<p>This endpoint is no longer active. '
  16. . 'Please update the form action to <code>/controllers/plantTestSubmit.php</code>.</p>';
  17. exit;