version 1.79, 2006/06/16 22:37:29
|
version 1.80, 2006/06/16 22:54:30
|
Line 226 sub handler {
|
Line 226 sub handler {
|
|
|
# ---------------------------------------------------------------- Check access |
# ---------------------------------------------------------------- Check access |
my $now = time; |
my $now = time; |
if ($requrl =~ m#/+uploaded/([^/]+)/([^/]+)/portfolio(/.+)$#) { |
if ($requrl =~ m|/+uploaded/([^/]+)/([^/]+)/portfolio(/.+)$|) { |
my $result = &portfolio_access($1,$2,$3); |
my $result = &portfolio_access($1,$2,$3); |
if ($result eq 'ok') { |
if ($result eq 'ok') { |
return OK; |
return OK; |
} |
} |
} elsif ($requrl =~ m#/+uploaded/([^/]+)/([^/]+)/groups/([^/]+)/portfolio/(.+)$#) { |
} elsif ($requrl =~ m|/+uploaded/([^/]+)/([^/]+)/groups/([^/]+)/portfolio/(.+)$|) { |
my $result = &portfolio_access($1,$2,$4.'/'.$3,$3); |
my $result = &portfolio_access($1,$2,$4.'/'.$3,$3); |
if ($result eq 'ok') { |
if ($result eq 'ok') { |
return OK; |
return OK; |
Line 350 sub handler {
|
Line 350 sub handler {
|
return OK; |
return OK; |
} |
} |
# ------------------------------------- See if this is a viewable portfolio file |
# ------------------------------------- See if this is a viewable portfolio file |
if ($requrl =~ m#/+uploaded/([^/]+)/([^/]+)/portfolio(/.+)$#) { |
if ($requrl =~ m|/+uploaded/([^/]+)/([^/]+)/portfolio(/.+)$|) { |
my $result = &portfolio_access($1,$2,$3); |
my $result = &portfolio_access($1,$2,$3); |
if ($result eq 'ok') { |
if ($result eq 'ok') { |
return OK; |
return OK; |
} |
} |
} elsif ($requrl =~ m#/+uploaded/([^/]+)/([^/]+)/groups/([^/]+)/portfolio/(.+)$#) { |
} elsif ($requrl =~ m|/+uploaded/([^/]+)/([^/]+)/groups/([^/]+)/portfolio/(.+)$|) { |
my $result = &portfolio_access($1,$2,$4.'/'.$3,$3); |
my $result = &portfolio_access($1,$2,$4.'/'.$3,$3); |
if ($result eq 'ok') { |
if ($result eq 'ok') { |
return OK; |
return OK; |