You are here

function _httpbl_cache_update in http:BL 5

Same name and namespace in other branches
  1. 6.2 httpbl.module \_httpbl_cache_update()
  2. 6 httpbl.module \_httpbl_cache_update()
  3. 7 httpbl.module \_httpbl_cache_update()

Update cache table

1 call to _httpbl_cache_update()
httpbl_request_whitelist_validate in ./httpbl.module

File

./httpbl.module, line 689
Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.

Code

function _httpbl_cache_update($ip, $status, $offset = 0) {
  db_query("UPDATE {httpbl} SET status = %d, expire = %d WHERE hostname = '%s'", $status, time() + $offset, $ip);
}