Ignore:
Timestamp:
Dec 10, 2014, 1:11:09 PM (10 years ago)
Author:
plg
Message:

check IP address on ContactForm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stop_spammers/main.inc.php

    r27641 r30719  
    6363
    6464add_event_handler('user_comment_check', 'stop_spammers_checks', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     65add_event_handler('contact_form_check', 'stop_spammers_checks', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    6566function stop_spammers_checks($action, $comment)
    6667{
     68  global $page;
     69 
    6770  if (!stop_spammers_check_stopforumspam())
    6871  {
     72    $page['errors'][] = l10n('IP address rejected');
    6973    return 'reject';
    7074  }
Note: See TracChangeset for help on using the changeset viewer.