PHP Classes

File: src/Module/SpamBotTextField.php

Recommend this page to a friend!
  Classes of stefan   contao PHP Spambot Detection   src/Module/SpamBotTextField.php   Download  
File: src/Module/SpamBotTextField.php
Role: Class source
Content type: text/plain
Description: Class source
Class: contao PHP Spambot Detection
Detect and block spam bots from accessing sites
Author: By
Last change:
Date: 1 year ago
Size: 610 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);

/*
 * sync*gw SpamBot Bundle
 *
 * @copyright https://syncgw.com, 2013 - 2022
 * @author Florian Daeumling, https://syncgw.com
 * @license http://opensource.org/licenses/lgpl-3.0.html
 */

namespace syncgw\SpamBotBundle\Module;

use
Contao\FormTextField;

class
SpamBotTextField extends FormTextField {

   
/**
     * Set a parameter
     */
   
public function __set($strKey, $varValue) {
        if (
'rgxp' === $strKey && 'email' === $varValue)
           
$varValue = 'rgxSpamBots';
       
parent::__set($strKey, $varValue);
    }

}

?>