version 1.59, 2005/01/25 00:28:00
|
version 1.62, 2005/02/08 01:20:11
|
Line 145 sub handler {
|
Line 145 sub handler {
|
"$requrl:bre:1:1:Invalid Access"; |
"$requrl:bre:1:1:Invalid Access"; |
return HTTP_NOT_ACCEPTABLE; |
return HTTP_NOT_ACCEPTABLE; |
} |
} |
my ($map,$mid,$murl)=split(/\_\_\_/,$symb); |
if ($symb) { |
&Apache::lonnet::symblist($map,$murl => $mid, |
my ($map,$mid,$murl)=split(/\_\_\_/,$symb); |
'last_known' => $murl); |
&Apache::lonnet::symblist($map,$murl => $mid, |
|
'last_known' => $murl); |
|
} |
} |
} |
$ENV{'request.symb'}=$symb; |
$ENV{'request.symb'}=$symb; |
&Apache::lonnet::courseacclog($symb); |
&Apache::lonnet::courseacclog($symb); |
Line 166 sub handler {
|
Line 168 sub handler {
|
if ($requrl=~m|^/public/| |
if ($requrl=~m|^/public/| |
|| (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) { |
|| (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) { |
&Apache::lonnet::logthis('Granting public access: '.$requrl); |
&Apache::lonnet::logthis('Granting public access: '.$requrl); |
my $buffer; |
&Apache::loncommon::get_posted_cgi($r); |
$r->read($buffer,$r->header_in('Content-length'),0); |
|
&Apache::loncommon::get_unprocessed_cgi($buffer); |
|
$ENV{'user.name'}='public'; |
$ENV{'user.name'}='public'; |
$ENV{'user.domain'}='public'; |
$ENV{'user.domain'}='public'; |
$ENV{'request.state'} = "published"; |
$ENV{'request.state'} = "published"; |
Line 187 sub handler {
|
Line 187 sub handler {
|
} |
} |
# -------------------------------------------------------------- Not authorized |
# -------------------------------------------------------------- Not authorized |
$requrl=~/\.(\w+)$/; |
$requrl=~/\.(\w+)$/; |
if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') || |
# if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') || |
($requrl=~/^\/adm\/(roles|logout|email|menu|remote)/) || |
# ($requrl=~/^\/adm\/(roles|logout|email|menu|remote)/) || |
($requrl=~m|^/prtspool/|)) { |
# ($requrl=~m|^/prtspool/|)) { |
# -------------------------- Store where they wanted to go and get login screen |
# -------------------------- Store where they wanted to go and get login screen |
$ENV{'request.querystring'}=$r->args; |
$ENV{'request.querystring'}=$r->args; |
$ENV{'request.firsturl'}=$requrl; |
$ENV{'request.firsturl'}=$requrl; |
return FORBIDDEN; |
return FORBIDDEN; |
} else { |
# } else { |
# --------------------------------------------------------------------- Goodbye |
# --------------------------------------------------------------------- Goodbye |
return HTTP_BAD_REQUEST; |
# return HTTP_BAD_REQUEST; |
} |
# } |
} |
} |
|
|
1; |
1; |