| | |
| | | exit; // Exit if accessed directly |
| | | } |
| | | /** |
| | | * TODO: this is old, I think. |
| | | * Form Manager Class |
| | | * Mainly used for front-end forms. |
| | | * Handles form rendering and processing using MetaManager |
| | |
| | | $this->turnstile_site_key = JVB_CLOUDFLARE_SITE_KEY; |
| | | $this->turnstile_secret_key = JVB_CLOUDFLARE_SECRET_KEY; |
| | | $this->meta = new MetaManager(null, 'form'); |
| | | $this->cache = new CacheManager('forms', WEEK_IN_SECONDS); |
| | | $this->cache = CacheManager::for('forms', WEEK_IN_SECONDS); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | // Send email |
| | | return jvbMail($to, $subject, $body, $headers); |
| | | return JVB()->email()->sendEmail($to, $subject, $body, $headers); |
| | | } |
| | | |
| | | /** |