# contact-forms/2.3.5/classes/Validation/Captcha2.php

Contact Forms by Cimatti, version 2.3.5. 22 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/2.3.5/code/classes/Validation/Captcha2.php
- Raw: https://pluginprobe.com/plugins/contact-forms/2.3.5/raw/classes/Validation/Captcha2.php
- Modified: 2026-04-08T09:49:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/contact-forms/2.3.5/code/classes/Validation/Captcha2.php#L10-L20`.

```php
<?php
/**
 * reCAPTCHA v2 Validation (deprecated wrapper)
 * @package Contact Forms
 */

// phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_trigger_error -- Deprecation notice for legacy API

class AccuaForm_Validation_Captcha2 extends AccuaForm_Validation_Captcha2b {
	public function __construct($privateKey, $message = "") {
	  if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
	  	$error_type = E_USER_DEPRECATED;
	  } else {
	    $error_type = E_USER_NOTICE;
	  }
	  trigger_error("AccuaForm_Validation_Captcha2 is <strong>deprecated</strong> since contact-forms version 1.4.7! Use AccuaForm_Validation_Captcha2b instead.", $error_type);
		$this->privateKey = $privateKey;
		if(!empty($message))
			$this->message = $message;
	}
}

```
