PluginProbe
Contact Forms by Cimatti / 2.2.32
Contact Forms by Cimatti v2.2.32
2.3.6 2.3.5 2.3.0 2.2.32 2.2.4 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 All 62 releases
contact-forms / classes / Validation / Captcha2.php

Captcha2.php in Contact Forms by Cimatti 2.2.32, at classes/Validation/Captcha2.php

22 lines 769 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * reCAPTCHA v2 Validation (deprecated wrapper)
4 * @package Contact Forms
5 */
6
7 // phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_trigger_error -- Deprecation notice for legacy API
8
9 class AccuaForm_Validation_Captcha2 extends AccuaForm_Validation_Captcha2b {
10 public function __construct($privateKey, $message = "") {
11 if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
12 $error_type = E_USER_DEPRECATED;
13 } else {
14 $error_type = E_USER_NOTICE;
15 }
16 trigger_error("AccuaForm_Validation_Captcha2 is <strong>deprecated</strong> since contact-forms version 1.4.7! Use AccuaForm_Validation_Captcha2b instead.", $error_type);
17 $this->privateKey = $privateKey;
18 if(!empty($message))
19 $this->message = $message;
20 }
21 }
22