# contact-forms/2.2.4/PFBC/Element/Captcha.php

Contact Forms by Cimatti, version 2.2.4. 23 lines.

- Page: https://pluginprobe.com/plugins/contact-forms/2.2.4/code/PFBC/Element/Captcha.php
- Raw: https://pluginprobe.com/plugins/contact-forms/2.2.4/raw/PFBC/Element/Captcha.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.2.4/code/PFBC/Element/Captcha.php#L10-L20`.

```php
<?php
/**
 * PFBC (PHP Form Builder Class) - Third-party library
 * @package PFBC
 */

// phpcs:disable WordPress.Security.EscapeOutput, WordPress.NamingConventions.PrefixAllGlobals, PluginCheck.CodeAnalysis.Heredoc -- Third-party library

class Element_Captcha extends Element {
	protected $privateKey = "6LcazwoAAAAAAD-auqUl-4txAK3Ky5jc5N3OXN0_";
	protected $publicKey = "6LcazwoAAAAAADamFkwqj5KN1Gla7l4fpMMbdZfi";

	public function __construct($label = "", array $properties = null) {
		parent::__construct($label, "recaptcha_response_field", $properties);
	}	

	public function render() {
		$this->validation[] = new Validation_Captcha($this->privateKey);
		require_once(dirname(__FILE__) . "/../Resources/recaptchalib.php");
		echo recaptcha_get_html($this->publicKey);
	}
}

```
