You are here

function ip_login_help_ranges in IP Login 6.2

Same name and namespace in other branches
  1. 7.3 ip_login.module \ip_login_help_ranges()
  2. 7.2 ip_login.module \ip_login_help_ranges()

Provides help about accepted values of IP ranges etc.

2 calls to ip_login_help_ranges()
ip_login_help in ./ip_login.module
Implementation of hook_help().
ip_login_user in ./ip_login.module
Implementation of hook_user().

File

./ip_login.module, line 90
Allow user login by IP addresses, ranges or wildcards.

Code

function ip_login_help_ranges($intro = '') {
  $help = '<p id="ip_login">' . $intro . ' ' . t('Accepted IP Login match values are:') . '</p>';
  $help .= '<ul><li>';
  $help .= t("Single IP matches like <code>123.123.123.123</code>");
  $help .= '</li><li>';
  $help .= t("Wildcards using an asterisk (<code>*</code>) in any quadrant except the first one, for example <code>123.123.123.*</code> or <code>100.*.*.*</code> etc.");
  $help .= '</li><li>';
  $help .= t("Ranges using a hyphen (<code>-</code>) in any quadrant except the first one, for example <code>123.123.123.100-200</code> etc.");
  $help .= '</li><li>';
  $help .= t("Any number of comma-separated IP addresses or ranges like <code>10.11.12.13, 123.123.123.100-200, 123.123.124-125.*</code> etc.");
  $help .= '</li></ul>';
  return $help;
}