function _httpbl_cache_update in http:BL 5
Same name and namespace in other branches
- 6.2 httpbl.module \_httpbl_cache_update()
- 6 httpbl.module \_httpbl_cache_update()
- 7 httpbl.module \_httpbl_cache_update()
Update cache table
1 call to _httpbl_cache_update()
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);
}