version 1.128, 2008/03/12 02:45:50
|
version 1.130, 2008/12/19 03:58:24
|
Line 247 sub parse_resource {
|
Line 247 sub parse_resource {
|
$turi=~/\.(\w+)$/; |
$turi=~/\.(\w+)$/; |
my $embstyle=&Apache::loncommon::fileembstyle($1); |
my $embstyle=&Apache::loncommon::fileembstyle($1); |
if ($token->[2]->{'external'} eq 'true') { # external |
if ($token->[2]->{'external'} eq 'true') { # external |
$turi=~s/^http\:\/\//\/adm\/wrapper\/ext\//; |
$turi=~s/^https?\:\/\//\/adm\/wrapper\/ext\//; |
} elsif ($turi=~/^\/*uploaded\//) { # uploaded |
} elsif ($turi=~/^\/*uploaded\//) { # uploaded |
if (($embstyle eq 'img') |
if (($embstyle eq 'img') |
|| ($embstyle eq 'emb') |
|| ($embstyle eq 'emb') |
Line 877 of course for user.
|
Line 877 of course for user.
|
This is part of the LearningOnline Network with CAPA project |
This is part of the LearningOnline Network with CAPA project |
described at http://www.lon-capa.org. |
described at http://www.lon-capa.org. |
|
|
=head1 HANDLER SUBROUTINE |
=head1 SUBROUTINES |
|
|
There is no handler subroutine. |
=over |
|
|
=head1 OTHER SUBROUTINES |
=item loadmap() |
|
|
=over 4 |
Loads map from disk |
|
|
=item * |
=item simplify() |
|
|
loadmap() : Loads map from disk |
Simplify expression |
|
|
=item * |
=item traceroute() |
|
|
simplify() : Simplify expression |
Build condition hash |
|
|
=item * |
=item accinit() |
|
|
traceroute() : Build condition hash |
Cascading conditions, quick access, parameters |
|
|
=item * |
=item readmap() |
|
|
accinit() : Cascading conditions, quick access, parameters |
Read map and all submaps |
|
|
=item * |
=item evalstate() |
|
|
readmap() : Read map and all submaps |
Evaluate state string |
|
|
=item * |
|
|
|
evalstate() : Evaluate state string |
|
|
|
=back |
=back |
|
|