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

Contact Forms by Cimatti, version 1.9.2. 15 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/1.9.2/code/classes/Validation/Captcha2.php
- Raw: https://pluginprobe.com/plugins/contact-forms/1.9.2/raw/classes/Validation/Captcha2.php
- Modified: 2023-03-14T12:04:18+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/1.9.2/code/classes/Validation/Captcha2.php#L10-L20`.

```php
<?php
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;
	}
}

```
