[% USE Api2; SET CPANEL.CPVAR.dprefix = "../"; SET return_link = 'index.html?account=' _ FORM.account.uri(); SET source_ip_check_account = Api2.exec("SourceIPCheck", "getaccount", {"account" => FORM.account}).0; SET source_ip_check_list_ips = Api2.exec("SourceIPCheck", "listips", { "api2_sort_column" => "ip", "api2_sort" => "1", "account" => FORM.account, "api2_sort_method" => "ipv4" } ); %] [% WRAPPER '_assets/master.html.tt' app_key = 'security_policy' %]

[% locale.maketext("Add Access IP for “[output,inline,_1,class,status]”", source_ip_check_account.account) %]

[% locale.maketext("This feature allows you to designate IP addresses from which you can access your account.") %]

[% locale.maketext("You may enter an asterisk (*) as a wildcard for a range of IP addresses. Asterisks are allowed in any field except the first.") %] [% locale.maketext("The following are all examples of valid entries:") %]

[% locale.maketext("Your current IP address is “[_1]”.",CPANEL.ENV.REMOTE_ADDR.html) %]

. . .

[% locale.maketext("Manage Recognized IP Addresses") %]

[% IF source_ip_check_list_ips.size %] [% FOREACH hashref IN source_ip_check_list_ips %] [% END %] [% ELSE %] [% END %]
[% locale.maketext("IP Address") %] [% locale.maketext("Functions") %]
[% hashref.ip.html() %]
[% locale.maketext("No Access IPs") %]
[% INCLUDE _assets/return_link.html.tt return_location=return_link return_link_text=locale.maketext('Go Back') %]
[% END #wrapper %]