flood_register_event

  1. drupal
    1. 4.7
    2. 5
    3. 6 common.inc
    4. 7 common.inc
Versions
4.7 – 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

▾ 2 functions call flood_register_event()

contact_mail_page_submit in modules/contact.module
Process the site-wide contact page form submission.
contact_mail_user_submit in modules/contact.module
Process the personal contact page form submission.

Code

includes/common.inc, line 687

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