flood_register_event
Definition
flood_register_event($name)
includes/common.inc, line 819
Description
Register an event for the current visitor (hostname/IP) to the flood control mechanism.
Parameters
$name The name of the event.
Related topics
| Name | Description |
|---|---|
| Input validation | Functions to validate user input. |
Code
<?php
function flood_register_event($name) {
db_query("INSERT INTO {flood} (event, hostname, timestamp) VALUES ('%s', '%s', %d)", $name, $_SERVER['REMOTE_ADDR'], time());
}
?> 