version 1.37, 2002/11/06 22:43:27
|
version 1.40, 2003/04/02 14:57:32
|
Line 32
|
Line 32
|
# 12/25,12/26, |
# 12/25,12/26, |
# YEAR=2001 |
# YEAR=2001 |
# 01/06/01,05/28,8/11,9/26,11/29 Gerd Kortemeyer |
# 01/06/01,05/28,8/11,9/26,11/29 Gerd Kortemeyer |
# 12/15 Scott Harrison |
|
# YEAR=2002 |
# YEAR=2002 |
# 1/4,2/25 Gerd Kortemeyer |
# 1/4,2/25 Gerd Kortemeyer |
# |
# |
Line 177 sub handler {
|
Line 176 sub handler {
|
if ($ENV{'request.course.id'}) { |
if ($ENV{'request.course.id'}) { |
&Apache::lonnet::countacc($requrl); |
&Apache::lonnet::countacc($requrl); |
$requrl=~/\.(\w+)$/; |
$requrl=~/\.(\w+)$/; |
if (&Apache::loncommon::fileembstyle($1) eq 'ssi') { |
if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') || |
|
($requrl=~/^\/adm\/(aboutme|navmaps|smppg|bulletinboard|wrapper)/) || |
|
($requrl=~/^\/public\/.*\/syllabus$/)) { |
# ------------------------------------- This is serious stuff, get symb and log |
# ------------------------------------- This is serious stuff, get symb and log |
my $query=$r->args; |
my $query=$r->args; |
my $symb; |
my $symb; |
Line 227 sub handler {
|
Line 228 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)/) || |
($requrl=~/^\/adm\/(roles|logout|email)/) || |
($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.firsturl'}=$requrl; |
$ENV{'request.querystring'}=$r->args; |
|
$ENV{'request.firsturl'}=$requrl; |
return FORBIDDEN; |
return FORBIDDEN; |
} else { |
} else { |
# --------------------------------------------------------------------- Goodbye |
# --------------------------------------------------------------------- Goodbye |