Diff for /loncom/interface/lonblockingstatus.pm between versions 1.14.2.2.2.2 and 1.14.2.2.2.3

version 1.14.2.2.2.2, 2020/09/29 20:17:30 version 1.14.2.2.2.3, 2021/01/04 17:26:22
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','groups','port','printout','docs','grades','passwd','search');      map { $activities{$_} = 1; } ('boards','chat','com','blogs','about','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','symb']);      &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['activity','url','symb']);
Line 84  sub blockpage { Line 84  sub blockpage {
     # we're trying to look at. This information is passed via query string.      # we're trying to look at. This information is passed via query string.
     my ($uname, $udom);      my ($uname, $udom);
   
     if (($activity eq 'port') ||      if (($activity eq 'port') || ($activity eq 'about') ||
         (($activity eq 'passwd') && ($env{'user.name'} eq 'public') && ($env{'user.domain'} eq 'public'))) {          (($activity eq 'passwd') && ($env{'user.name'} eq 'public') && ($env{'user.domain'} eq 'public'))) {
         &Apache::loncommon::get_unprocessed_cgi(          &Apache::loncommon::get_unprocessed_cgi(
             $ENV{'QUERY_STRING'}, ['udom', 'uname'] );              $ENV{'QUERY_STRING'}, ['udom', 'uname'] );
Line 96  sub blockpage { Line 96  sub blockpage {
                        &mt('Information about the owner of the portfolio files you were trying to view was missing or invalid.').                         &mt('Information about the owner of the portfolio files you were trying to view was missing or invalid.').
                        '</span><br />'.                         '</span><br />'.
                        &mt('Without valid owner information, the reason why access is blocked can not be determined');                         &mt('Without valid owner information, the reason why access is blocked can not be determined');
               } elsif ($activity eq 'about') {
                   return '<span class="LC_error">'.
                          &mt('The username and/or domain for the User Information page you were trying to view was missing or invalid.').
                          '</span><br />'.
                          &mt('Without valid information, the reason why access is blocked can not be determined');
             } else {              } else {
                 return '<span class="LC_error">'.                  return '<span class="LC_error">'.
                        &mt('Information about the username and/or domain for which you were trying to reset a password was missing or invalid.').                         &mt('Information about the username and/or domain for which you were trying to reset a password was missing or invalid.').
Line 151  sub blockpage { Line 156  sub blockpage {
                    chat       => 'Chat Room',                     chat       => 'Chat Room',
                    com        => 'This message',                     com        => 'This message',
                    blogs      => 'Blogs',                     blogs      => 'Blogs',
                      about      => 'User information pages',
                    groups     => 'Groups in this course',                     groups     => 'Groups in this course',
                    printout   => 'Printout generation',                     printout   => 'Printout generation',
                    docs       => 'Course Content',                     docs       => 'Course Content',
Line 189  sub blockpage { Line 195  sub blockpage {
                          . ' 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')) {                   ($activity eq 'grades') || ($activity eq 'search') ||
                    ($activity eq 'about')) {
             $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.'

Removed from v.1.14.2.2.2.2  
changed lines
  Added in v.1.14.2.2.2.3


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