@@ -11,13 +11,21 @@ function restrict_ip_settings($form, &$form_state)
(
'#markup'=>t('Enter the list of allowed IP addresses below'),
'#prefix'=>'<h2>',
'#suffix'=>'</h2><p><strong style="color:red">'.t("Warning: If you don't enter your current IP address into the list, you will immediately be locked out of the system upon save, and will not be able to access the system until you are in a location with an allowed IP address. Alternatively you can allow Restrict IP to be bypassed by role, and set at least one of your roles to be bypassed on the !permissions page.",array('!permissions'=>user_access('administer permissions')?l(t('permissions'),'admin/people/permissions'):t('permissions'))).'</strong></p><p><strong>'.t('Your current IP address is: !ip_address',array('!ip_address'=>'<em>'.ip_address().'</em>')).'</strong></p>',
'#suffix'=>'</h2><p><strong style="color:red">'.t("Warning: If you enable IP restriction, and don't enter your current IP address into the list, you will immediately be locked out of the system upon save, and will not be able to access the system until you are in a location with an allowed IP address. Alternatively you can allow Restrict IP to be bypassed by role, and set at least one of your roles to be bypassed on the !permissions page.",array('!permissions'=>user_access('administer permissions')?l(t('permissions'),'admin/people/permissions'):t('permissions'))).'</strong></p><p><strong>'.t('Your current IP address is: !ip_address',array('!ip_address'=>'<em>'.ip_address().'</em>')).'</strong></p>',
);
$form['restrict_ip_enable']=array
(
'#type'=>'checkbox',
'#title'=>t('Enable Restricted IPs'),
'#description'=>t('IP addresses will only be enabled when this option is selected'),
'#description'=>t('Enter the list of IP Addresses that are allowed to access the site. If this field is left empty, all IP addresses will be able to access the site. Enter one IP address per line. You may also enter a range of IP addresses in the format AAA.BBB.CCC.XXX - AAA.BBB.CCC.YYY'),
'#description'=>t('Enter the list of IP Addresses that are allowed to access the site. Enter one IP address per line, in IPv4 or IPv6 format. You may also enter a range of IPv4 addresses in the format AAA.BBB.CCC.XXX - AAA.BBB.CCC.YYY'),
'#description'=>t('Enter a list of paths that will be allowed regardless of IP address. For example, to whitelist this page, you would enter <em>admin/config/people/restrict_ip</em>. Do not include domain names. Wildcards will not work at this time.'),
'#description'=>t('Enter a list of paths that will be allowed regardless of IP address. For example, to not check IP addresses on this page, you would enter <em>admin/config/people/restrict_ip</em>. All paths not included here will be checked. Do not include domain names. Wildcards in paths do not work.'),
'#description'=>t('Enter a list of paths on which IP addresses will be checked. For example, to check IP addresses on this page, you would enter <em>admin/config/people/restrict_ip</em>. All paths not included here will not be checked. Do not include domain names. Wildcards in paths do not work.'),