8
0
Mirror von https://git.d3data.de/3rdParty/captcha-module.git synchronisiert 2025-07-05 15:45:01 +02:00

Basic changes made for smarty and base code

Dieser Commit ist enthalten in:
Gabriel Peleskei
2023-07-18 14:59:11 +00:00
Ursprung 2b8493d37a
Commit bd415ccb3e
44 geänderte Dateien mit 760 neuen und 768 gelöschten Zeilen

Datei anzeigen

@ -1,52 +0,0 @@
<?php
/**
* #PHPHEADER_OECAPTCHA_LICENSE_INFORMATION#
*/
/**
* Class oeCaptchaDetails.
* Extends Details.
*
* @see Details
*/
class oeCaptchaDetails extends oeCaptchaDetails_parent
{
/**
* Class handling CAPTCHA image.
*
* @var object
*/
protected $captcha = null;
/**
* Validates email
* address. If email is wrong - returns false and exits. If email
* address is OK - creates price alarm object and saves it
* (oxpricealarm::save()). Sends price alarm notification mail
* to shop owner.
*
* @return bool false on error
*/
public function addme()
{
if (!$this->getCaptcha()->passCaptcha(false)) {
$this->_iPriceAlarmStatus = 2;
return;
}
return parent::addme();
}
/**
* 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;
}
}