system_ip_blocking

function system_ip_blocking

system_ip_blocking($default_ip = '')

Menu callback. Display blocked IP addresses.

Parameters

$default_ip: Optional IP address to be passed on to drupal_get_form() for use as the default value of the IP address form field.

File

modules/system/system.admin.inc, line 1394
Admin page callbacks for the system module.

Code

function system_ip_blocking($default_ip = '') {
  $rows = array();
  $header = array(t('Blocked IP addresses'), t('Operations'));
  $result = db_query('SELECT * FROM {blocked_ips}');
  foreach ($result as $ip) {
    $rows[] = array(