version 1.13, 2016/01/27 00:24:09
|
version 1.16, 2020/09/22 12:19:15
|
Line 44 sub handler {
|
Line 44 sub handler {
|
return OK if $r->header_only; |
return OK if $r->header_only; |
|
|
my (%activities,$activity,$origurl); |
my (%activities,$activity,$origurl); |
map { $activities{$_} = 1; } ('boards','chat','msgdisplay','blogs','groups','port','printout','docs','passwd'); |
map { $activities{$_} = 1; } ('boards','chat','com','blogs','groups','port','printout','docs','grades','passwd','search'); |
|
|
# determine what kind of blocking we want details for |
# determine what kind of blocking we want details for |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['activity','url']); |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['activity','url']); |
Line 52 sub handler {
|
Line 52 sub handler {
|
|
|
my $title = 'Communication Blocking Status Information'; |
my $title = 'Communication Blocking Status Information'; |
|
|
if (($activity eq 'docs') || ($activity eq 'printout')) { |
if (($activity eq 'docs') || ($activity eq 'printout') || |
|
($activity eq 'grades') || ($activity eq 'passwd') || |
|
($activity eq 'search')) { |
$title = 'Blocking Status Information'; |
$title = 'Blocking Status Information'; |
$origurl = $env{'form.url'}; |
if ($activity eq 'docs') { |
|
$origurl = $env{'form.url'}; |
|
} |
} |
} |
$r->print(&Apache::loncommon::start_page($title,undef, |
$r->print(&Apache::loncommon::start_page($title,undef, |
{'only_body' => 1})); |
{'only_body' => 1})); |
Line 113 sub blockpage {
|
Line 117 sub blockpage {
|
my %descs = ( |
my %descs = ( |
boards => 'Discussion posts in this course', |
boards => 'Discussion posts in this course', |
chat => 'Chat Room', |
chat => 'Chat Room', |
msgdisplay => 'This message', |
com => 'This message', |
blogs => 'Blogs', |
blogs => 'Blogs', |
groups => 'Groups in this course', |
groups => 'Groups in this course', |
printout => 'Printout generation', |
printout => 'Printout generation', |
docs => 'Course Content', |
docs => 'Course Content', |
passwd => 'Changing of passwords', |
passwd => 'Changing of passwords', |
|
grades => 'Course Gradebook', |
|
search => 'Content Search', |
); |
); |
|
|
if ($activity eq 'groups' || $activity eq 'boards') { |
if ($activity eq 'groups' || $activity eq 'boards') { |
if (&Apache::loncommon::course_type() eq 'Community') { |
if (&Apache::loncommon::course_type() eq 'Community') { |
$descs{'boards'} = 'Discussion posts in this community', |
$descs{'boards'} = 'Discussion posts in this community'; |
$descs{'groups'} = 'Groups in this community', |
$descs{'groups'} = 'Groups in this community'; |
$descs{'docs'} = 'Community Content', |
$descs{'docs'} = 'Community Content'; |
|
$descs{'grades'} = 'Community Gradebook'; |
} |
} |
} |
} |
|
|
Line 141 sub blockpage {
|
Line 148 sub blockpage {
|
my $showend = Apache::lonlocal::locallocaltime($endblock); |
my $showend = Apache::lonlocal::locallocaltime($endblock); |
|
|
my $output; |
my $output; |
|
|
if ( ref($description) ne 'ARRAY' ) { |
if ( ref($description) ne 'ARRAY' ) { |
#default: $description is one of the above descriptions |
#default: $description is one of the above descriptions |
if ($activity eq 'docs') { |
if ($activity eq 'docs') { |
Line 149 sub blockpage {
|
Line 156 sub blockpage {
|
. ' view will be unavailable between [_1] and [_2] because' |
. ' view will be unavailable between [_1] and [_2] because' |
. ' access to selected '.$description.' is being blocked.' |
. ' access to selected '.$description.' is being blocked.' |
,$showstart, $showend); |
,$showstart, $showend); |
} elsif (($activity eq 'printout') || ($activity eq 'passwd')) { |
} elsif (($activity eq 'printout') || ($activity eq 'passwd') || |
|
($activity eq 'grades') || ($activity eq 'search')) { |
$output = mt( $description |
$output = mt( $description |
. ' will be unavailable between [_1] and [_2] because' |
. ' will be unavailable between [_1] and [_2] because' |
. ' this functionality is being blocked.' |
. ' this functionality is being blocked.' |