');
&access_element($r,'course',$acl_count,$courses,$access_controls,$now,$then);
$r->print(' | | ');
- &access_element($r,'userip',$acl_count,$ips,$access_controls,$now,$then);
+ &access_element($r,'ip',$acl_count,$ips,$access_controls,$now,$then);
$r->print(' |
');
}
@@ -1525,7 +1499,7 @@ sub access_element {
domains => 'Domain',
users => 'User',
course => 'Course/Community',
- userip => 'IP',
+ ip => 'IP',
);
$r->print(''.&mt($typetext{$type}.'-based conditional access:').' ');
if ($$acl_count{$type}) {
@@ -1550,7 +1524,7 @@ sub display_access_row {
} elsif ($type eq 'users') {
$showtype = &mt('Users');
$infotype = 'User';
- } elsif ($type eq 'userip') {
+ } elsif ($type eq 'ip') {
$showtype = &mt('IP-based');
$infotype = 'IP';
}
@@ -1578,7 +1552,7 @@ sub display_access_row {
$then);
} elsif ($type eq 'users') {
&users_row($r,$status,$key,$access_controls,$now,$then);
- } elsif ($type eq 'userip') {
+ } elsif ($type eq 'ip') {
&ips_row($r,$status,$key,$access_controls,$now,$then);
}
$r->print(&Apache::loncommon::end_data_table_row());
@@ -1761,11 +1735,11 @@ sub users_row {
sub ips_row {
my ($r,$status,$item,$access_controls,$now,$then) = @_;
my ($num,$scope,$end,$start) = &set_identifiers($status,$item,$now,$then,
- 'userip');
+ 'ip');
my $curr_ips_list;
if ($status eq 'old') {
my $content = $$access_controls{$item};
- $curr_ips_list = &sort_ips($content->{'userip'});
+ $curr_ips_list = &sort_ips($content->{'ip'});
}
$r->print(''.&actionbox($status,$num,$scope).' | '.&mt('Format for IP controls').' '.
&mt('[_1] or [_2] or [_3] or [_4] or [_5]','35.8.*','35.8.3.[34-56]',
@@ -1784,7 +1758,7 @@ sub additional_item {
$showtype = 'domain';
} elsif ($type eq 'users') {
$showtype = 'user';
- } elsif ($type eq 'userip') {
+ } elsif ($type eq 'ip') {
$showtype = 'IP';
}
return
@@ -1798,7 +1772,7 @@ sub actionbox {
my $output = ' |