/[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.39, Sat Jun 13 03:12:24 2009 UTC revision 1.40, Mon Aug 3 19:10:22 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: troll.module,v 1.38 2009/05/09 03:54:04 deekayen Exp $  // $Id: troll.module,v 1.39 2009/06/13 03:12:24 deekayen Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 42  function troll_boot() { Line 42  function troll_boot() {
42      $req_mod = variable_get('troll_blacklist_mod_requests', 0);      $req_mod = variable_get('troll_blacklist_mod_requests', 0);
43      if ($req_mod == 'notice_post_drop' && !empty($_POST)) {      if ($req_mod == 'notice_post_drop' && !empty($_POST)) {
44        $_POST = array();        $_POST = array();
45        drupal_set_message(t('Your data submission was ignored because you are visiting from a blacklisted location.'));        include_once('includes/common.inc');
46          drupal_set_message(t('Your data submission was ignored because you are visiting from a blacklisted location.'), 'warning');
47      }      }
48      else if ($req_mod == 'silent_post_drop') {      else if ($req_mod == 'silent_post_drop') {
49        $_POST = array();        $_POST = array();

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.2