version 1.15, 2014/01/05 11:30:06
|
version 1.18, 2015/09/18 11:43:05
|
Line 1
|
Line 1
|
# The LearningOnline Network |
# The LearningOnline Network |
# checks for a cokkie to authenticate a user |
# checks for a cookie to authenticate a user |
# |
# |
# $Id$ |
# $Id$ |
# |
# |
Line 38 sub handler {
|
Line 38 sub handler {
|
|
|
if ($r->uri() =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { |
if ($r->uri() =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { |
if ($r->user() eq '') { |
if ($r->user() eq '') { |
$r->user('public'); |
$r->user('public:public'); |
} |
} |
return OK; |
return OK; |
} |
} |
|
|
if (&Apache::lonnet::is_domainimage($r->uri)) { |
if (&Apache::lonnet::is_domainimage($r->uri)) { |
if ($r->user() eq '') { |
if ($r->user() eq '') { |
$r->user('public'); |
$r->user('public:public'); |
|
} |
|
return OK; |
|
} |
|
|
|
if ($r->uri() =~ m{^/res/adm/pages/reactionresponse/[^/]+\.html$}) { |
|
if ($r->user() eq '') { |
|
$r->user('public:public'); |
} |
} |
return OK; |
return OK; |
} |
} |
Line 66 sub handler {
|
Line 73 sub handler {
|
&& $env{'user.domain'} eq 'public') { |
&& $env{'user.domain'} eq 'public') { |
if ($env{'request.publicaccess'} ) { |
if ($env{'request.publicaccess'} ) { |
if ($r->user() eq '') { |
if ($r->user() eq '') { |
$r->user('public'); |
$r->user('public:public'); |
} |
} |
return OK; |
return OK; |
} else { |
} else { |