Plugin Hooks » AntiSpam_Check


Hook Details
Typefilter
Available Since2.3.3
Latest Version Used4.6.1

Add-ons Using "AntiSpam_Check"

Below is a list of all add-ons that have implemented the "AntiSpam_Check" hook by defining it in their addon.ini file.

AddonHook Argument
Anti Spam Math
AntiSpamSFS

Where "AntiSpam_Check" is Called

Below is quick look at where "AntiSpam_Check" is implemented within the Typesetter code.

Package:   Typesetter Core File:   Typesetter/include/tool/recaptcha.php Line: 69

Lines 59 through 77


/**
 * Verify the user submitted form by checking anti-spam hooks and/or recaptcha if they exist
 * @static
 *
 */
static function Check(){
    global 
$page,$langmessage,$config,$dataDir;

    
// if hooks return false, stop
    
if( !gpPlugin::Filter('AntiSpam_Check',array(true)) ) return false;

    
// if recaptcha inactive, stop
    
if( !gp_recaptcha::hasRecaptcha() ) return true;

    if( empty(
$_POST['g-recaptcha-response']) ){

View the complete file ( GitHub.com )


Need a new hook for your addon?
Let us know, we're more than happy to accommodate!

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In

  Register