| | |
| | | { |
| | | parent::__construct(); |
| | | $this->action = 'form-'; |
| | | $this->cache = new CacheManager('form_submissions', HOUR_IN_SECONDS); |
| | | $this->cache = CacheManager::for('forms', HOUR_IN_SECONDS); |
| | | |
| | | // Initialize Cloudflare Turnstile if available |
| | | $this->turnstile = class_exists('JVBase\managers\CloudflareTurnstile') && jvbSiteUsesCloudflare() |
| | |
| | | } |
| | | |
| | | // Store submission data temporarily for success display |
| | | $this->cache->set('submission_' . $form_id, $processed_data, HOUR_IN_SECONDS); |
| | | $this->cache->set('submission_' . $form_id, $processed_data); |
| | | |
| | | // Log successful submission |
| | | $this->recordSubmission($_SERVER['REMOTE_ADDR'], $processed_data['email'] ?? ''); |