flood_register_event

5 common.inc flood_register_event($name)
6 common.inc flood_register_event($name)
7 common.inc flood_register_event($name, $window = 3600, $identifier = NULL)
8 common.inc flood_register_event($name, $window = 3600, $identifier = NULL)

Register an event for the current visitor (hostname/IP) to the flood control mechanism.

Parameters

$name: The name of an event.

2 calls to flood_register_event()

File

includes/common.inc, line 1058
Common functions that many Drupal modules will need to reference.

Code

function flood_register_event($name) {
  db_query("INSERT INTO {flood} (event, hostname, timestamp) VALUES ('%s', '%s', %d)", $name, ip_address(), time());
}
Login or register to post comments