Diff for /loncom/auth/publiccheck.pm between versions 1.15 and 1.18

version 1.15, 2007/10/02 01:09:59 version 1.18, 2009/10/26 18:59:02
Line 42  sub handler { Line 42  sub handler {
     my $r = shift;      my $r = shift;
   
     my $requrl=$r->uri;      my $requrl=$r->uri;
   
     if (&Apache::lonnet::is_domainimage($requrl)) {      if (&Apache::lonnet::is_domainimage($requrl)) {
         return OK;          return OK;
     }      }
   
       if ($requrl =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) {
           return OK;
       }
   
     my $handle = &Apache::lonnet::check_for_valid_session($r);      my $handle = &Apache::lonnet::check_for_valid_session($r);
     if ($handle ne '') {      if ($handle ne '') {
         my $lonidsdir=$r->dir_config('lonIDsDir');          my $lonidsdir=$r->dir_config('lonIDsDir');
Line 58  sub handler { Line 63  sub handler {
     if ($requrl=~m|^/public/|      if ($requrl=~m|^/public/|
  || $requrl=~m|^/adm/help/.*\.hlp$|   || $requrl=~m|^/adm/help/.*\.hlp$|
  || $requrl=~m|^/adm/[^/]+/[^/]+/aboutme/portfolio$|   || $requrl=~m|^/adm/[^/]+/[^/]+/aboutme/portfolio$|
  || (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) {   || (&Apache::lonnet::metadata($requrl,'copyright') eq 'public') 
       || $requrl=~m|^/adm/blockingstatus/.*$| 
       || $requrl eq '/adm/coursecatalog') {
         &process_public($r,$requrl);          &process_public($r,$requrl);
         return OK;          return OK;
     } elsif (&Apache::lonnet::is_portfolio_url($requrl)) {      } elsif (&Apache::lonnet::is_portfolio_url($requrl)) {
Line 75  sub handler { Line 82  sub handler {
     } elsif ($requrl eq '/adm/blockedaccess') {      } elsif ($requrl eq '/adm/blockedaccess') {
        &process_public($r,$requrl);         &process_public($r,$requrl);
        return OK;         return OK;
     }       }
     return DECLINED;      return DECLINED;
 }  }
   

Removed from v.1.15  
changed lines
  Added in v.1.18


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