mirror of
https://git.d3data.de/3rdParty/captcha-module.git
synced 2025-07-05 07:35:02 +02:00
Revert "Upgrade to OXID 7 with Twig & Smarty"
This commit is contained in:
committed by
GitHub
parent
3acc30a3a5
commit
64abb3b36f
49
controllers/oecaptchainvite.php
Normal file
49
controllers/oecaptchainvite.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* #PHPHEADER_OECAPTCHA_LICENSE_INFORMATION#
|
||||
*/
|
||||
|
||||
/**
|
||||
* Article suggestion page.
|
||||
* Collects some article base information, sets default recommendation text,
|
||||
* sends suggestion mail to user.
|
||||
*/
|
||||
class oeCaptchaInvite extends oeCaptchaInvite_parent
|
||||
{
|
||||
/**
|
||||
* Class handling CAPTCHA image.
|
||||
*
|
||||
* @var object
|
||||
*/
|
||||
protected $captcha = null;
|
||||
|
||||
/**
|
||||
* Sends product suggestion mail and returns a URL according to
|
||||
* URL formatting rules.
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
public function send()
|
||||
{
|
||||
if (!$this->getCaptcha()->passCaptcha()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return parent::send();
|
||||
}
|
||||
|
||||
/**
|
||||
* Template variable getter. Returns object of handling CAPTCHA image
|
||||
*
|
||||
* @return object
|
||||
*/
|
||||
public function getCaptcha()
|
||||
{
|
||||
if ($this->captcha === null) {
|
||||
$this->captcha = oxNew('oeCaptcha');
|
||||
}
|
||||
|
||||
return $this->captcha;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user