/[drupal]/contributions/modules/troll/troll.module
ViewVC logotype

Diff of /contributions/modules/troll/troll.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.32.2.11, Sat Jun 13 02:52:20 2009 UTC revision 1.32.2.12, Mon Aug 3 18:47:19 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: troll.module,v 1.32.2.10 2009/05/09 05:47:46 deekayen Exp $  // $Id: troll.module,v 1.32.2.11 2009/06/13 02:52:20 deekayen Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 47  function troll_boot() { Line 47  function troll_boot() {
47      $req_mod = variable_get('troll_blacklist_mod_requests', 0);      $req_mod = variable_get('troll_blacklist_mod_requests', 0);
48      if ($req_mod == 'notice_post_drop' && !empty($_POST)) {      if ($req_mod == 'notice_post_drop' && !empty($_POST)) {
49        $_POST = array();        $_POST = array();
50        drupal_set_message(t('Your data submission was ignored because you are visiting from a blacklisted location.'));        include_once('includes/common.inc');
51          drupal_set_message(t('Your data submission was ignored because you are visiting from a blacklisted location.'), 'warning');
52        watchdog('troll', 'Data submission ignored with notification to user from @ip', array('@ip' => $ip), WATCHDOG_DEBUG);        watchdog('troll', 'Data submission ignored with notification to user from @ip', array('@ip' => $ip), WATCHDOG_DEBUG);
53      }      }
54      elseif ($req_mod == 'silent_post_drop') {      elseif ($req_mod == 'silent_post_drop') {

Legend:
Removed from v.1.32.2.11  
changed lines
  Added in v.1.32.2.12

  ViewVC Help
Powered by ViewVC 1.1.2