| 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 |
| 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') { |