Diff for /loncom/interface/lonblockingstatus.pm between versions 1.14.2.5 and 1.14.2.6

version 1.14.2.5, 2021/12/13 04:05:24 version 1.14.2.6, 2021/12/24 21:32:03
Line 44  sub handler { Line 44  sub handler {
     return OK if $r->header_only;      return OK if $r->header_only;
   
     my (%activities,$activity,$origurl,$origsymb);      my (%activities,$activity,$origurl,$origsymb);
     map { $activities{$_} = 1; } ('boards','chat','com','blogs','about','groups','port','printout','docs','grades','passwd','search');      map { $activities{$_} = 1; } ('boards','chat','com','blogs','about','groups','port','printout','docs','grades','passwd','search','wishlist','annotate');
   
     # 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','symb']);      &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['activity','url','symb']);
Line 54  sub handler { Line 54  sub handler {
   
     if (($activity eq 'docs') || ($activity eq 'printout') ||      if (($activity eq 'docs') || ($activity eq 'printout') ||
         ($activity eq 'grades') || ($activity eq 'passwd') ||          ($activity eq 'grades') || ($activity eq 'passwd') ||
         ($activity eq 'search')) {          ($activity eq 'search') || ($activity eq 'wishlist') ||
           ($activity eq 'annotate')) {
         $title = 'Blocking Status Information';          $title = 'Blocking Status Information';
         if ($activity eq 'docs') {          if ($activity eq 'docs') {
             $origurl = $env{'form.url'};              $origurl = $env{'form.url'};
Line 164  sub blockpage { Line 165  sub blockpage {
                    passwd     => 'Changing of passwords',                     passwd     => 'Changing of passwords',
                    grades     => 'Course Gradebook',                     grades     => 'Course Gradebook',
                    search     => 'Content Search',                     search     => 'Content Search',
                      wishlist   => 'Stored Links',
                      annotate   => 'Annotations',
                 );                  );
   
     if ($activity eq 'groups' || $activity eq 'boards') {      if ($activity eq 'groups' || $activity eq 'boards') {
Line 171  sub blockpage { Line 174  sub blockpage {
             $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';                $descs{'grades'} = 'Community Gradebook';
         }          }
     }      }
   
Line 198  sub blockpage { Line 201  sub blockpage {
                          ,$showstart, $showend);                           ,$showstart, $showend);
         } elsif (($activity eq 'printout') || ($activity eq 'passwd') ||          } elsif (($activity eq 'printout') || ($activity eq 'passwd') ||
                  ($activity eq 'grades') || ($activity eq 'search') ||                   ($activity eq 'grades') || ($activity eq 'search') ||
                  ($activity eq 'about')) {                   ($activity eq 'about') || ($activity eq 'wishlist') ||
                    ($activity eq 'annotate')) {
             if ($by_ip) {              if ($by_ip) {
                 $output = mt( $description                  $output = mt( $description
                               . ' unavailable from your current IP address: [_1] '                                . ' unavailable from your current IP address: [_1] '
Line 252  sub blockpage { Line 256  sub blockpage {
         if ($by_ip) {          if ($by_ip) {
             my $showdom = &Apache::lonnet::domain($blockdom);              my $showdom = &Apache::lonnet::domain($blockdom);
             if ($showdom eq '') {              if ($showdom eq '') {
                 $showdom = $blockdom                  $showdom = $blockdom;
             }              }
             $output .= '<br />'.              $output .= '<br />'.
                        &mt('This restriction was set by an administrator in the [_1] LON-CAPA domain.'                         &mt('This restriction was set by an administrator in the [_1] LON-CAPA domain.'

Removed from v.1.14.2.5  
changed lines
  Added in v.1.14.2.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>