flood_register_event

Versions
4.6 – 6
flood_register_event($name)
7
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 the event.

Related topics

Code

includes/common.inc, line 600

<?php
function flood_register_event($name) {
  db_query("INSERT INTO {flood} (event, hostname, timestamp) VALUES ('%s', '%s', %d)", $name, $_SERVER['REMOTE_ADDR'], time());
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.