| @@ -1,15 +1,15 @@ | ||
| 1 | -<?php | |
| 2 | -class Element_Captcha extends Element { | |
| 3 | - protected $privateKey = "6LcazwoAAAAAAD-auqUl-4txAK3Ky5jc5N3OXN0_"; | |
| 4 | - protected $publicKey = "6LcazwoAAAAAADamFkwqj5KN1Gla7l4fpMMbdZfi"; | |
| 5 | - | |
| 6 | - public function __construct($label = "", array $properties = null) { | |
| 7 | - parent::__construct($label, "recaptcha_response_field", $properties); | |
| 8 | - } | |
| 9 | - | |
| 10 | - public function render() { | |
| 11 | - $this->validation[] = new Validation_Captcha($this->privateKey); | |
| 12 | - require_once(dirname(__FILE__) . "/../Resources/recaptchalib.php"); | |
| 13 | - echo recaptcha_get_html($this->publicKey); | |
| 14 | - } | |
| 15 | -} | |
| 1 | +<?php | |
| 2 | +class Element_Captcha extends Element { | |
| 3 | + protected $privateKey = "6LcazwoAAAAAAD-auqUl-4txAK3Ky5jc5N3OXN0_"; | |
| 4 | + protected $publicKey = "6LcazwoAAAAAADamFkwqj5KN1Gla7l4fpMMbdZfi"; | |
| 5 | + | |
| 6 | + public function __construct($label = "", array $properties = null) { | |
| 7 | + parent::__construct($label, "recaptcha_response_field", $properties); | |
| 8 | + } | |
| 9 | + | |
| 10 | + public function render() { | |
| 11 | + $this->validation[] = new Validation_Captcha($this->privateKey); | |
| 12 | + require_once(dirname(__FILE__) . "/../Resources/recaptchalib.php"); | |
| 13 | + echo recaptcha_get_html($this->publicKey); | |
| 14 | + } | |
| 15 | +} | |