version 1.8.2.1, 2024/07/04 17:30:17
|
version 1.10, 2024/02/11 21:41:48
|
Line 136 sub course_search {
|
Line 136 sub course_search {
|
foreach (sort(keys(%hash))) { |
foreach (sort(keys(%hash))) { |
if ($c->aborted()) { last; } |
if ($c->aborted()) { last; } |
if (($_=~/^src\_(.+)$/)) { |
if (($_=~/^src\_(.+)$/)) { |
my $rid = $1; |
my $rid = $1; |
if ($hash{'randomout_'.$rid} & !$env{'request.role.adv'}) { |
unless ($env{'request.role.adv'}) { |
next; |
next if ($hash{'randomout_'.$rid} || $hash{'deeplinkout_'.$rid}); |
|
if (!$env{'request.deeplink.login'} && $hash{'deeplinkonly_'.$rid}) { |
|
my ($value) = map { &unescape($_); } split(/:/,$hash{'deeplinkonly_'.$rid}); |
|
my ($state,$others,$listed) = split(/,/,$value); |
|
next if (($state eq 'only') && |
|
(($listed eq 'absent') || ($listed eq 'grades'))); |
|
} |
} |
} |
my $symb=&make_symb($rid); |
my $symb=&make_symb($1); |
&checkonthis($r,$rid,$hash{$_},0,&Apache::lonnet::gettitle($symb), |
&checkonthis($r,$1,$hash{$_},0,&Apache::lonnet::gettitle($symb), |
$fulltext,$symb,@allwords); |
$fulltext,$symb,@allwords); |
} |
} |
} |
} |
Line 263 sub checkonthis {
|
Line 269 sub checkonthis {
|
my $href=$url; |
my $href=$url; |
if ($hash{'encrypted_'.$id} && !$env{'request.role.adv'}) { |
if ($hash{'encrypted_'.$id} && !$env{'request.role.adv'}) { |
$href=&Apache::lonenc::encrypted($href); |
$href=&Apache::lonenc::encrypted($href); |
if ($href =~ /\.sequence$/) { |
if ($url =~ /\.sequence$/) { |
$href .= '?navmap=1'; |
$href .= '?navmap=1'; |
} else { |
} else { |
$href .= '?symb='.&Apache::lonenc::encrypted($symb); |
$href .= '?symb='.&Apache::lonenc::encrypted($symb); |