| Versionen | |
|---|---|
| drupal6 – drupal7 | flood_register_event($name) |
Register an event for the current visitor (hostname/IP) to the flood control mechanism.
$name The name of an event.
includes/
<?php
function flood_register_event($name) {
db_query("INSERT INTO {flood} (event, hostname, timestamp) VALUES ('%s', '%s', %d)", $name, ip_address(), time());
}
?>
Kommentare
Kommentar hinzufügen