You are here

function duplicate_denied_ip in Spam 5.3

1 string reference to 'duplicate_denied_ip'
duplicate_menu in filters/duplicate/duplicate.module
Drupal _menu() hook.

File

filters/duplicate/duplicate.module, line 356

Code

function duplicate_denied_ip() {
  $message = strtr(variable_get('duplicate_blacklist_message', t('<p>You are currently not allowed to post content to @site, as previous content posted by your IP address (%IP) has been flagged as potential spam.</p><p>If you have not posted spam to @site, please report this error along with your IP address to a site administrator.  We apologize for any inconvenience.</p>')), array(
    '@site' => variable_get('site_name', 'Drupal'),
    '%IP' => $_SERVER['REMOTE_ADDR'],
  ));
  spam_denied_page($message, t('Your IP address has been blocked by our spam filter.'));
}