--- rat/lonratsrv.pm 2008/11/20 13:51:22 1.40 +++ rat/lonratsrv.pm 2011/10/25 19:23:20 1.42 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Server for RAT Maps # -# $Id: lonratsrv.pm,v 1.40 2008/11/20 13:51:22 jms Exp $ +# $Id: lonratsrv.pm,v 1.42 2011/10/25 19:23:20 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -26,23 +26,6 @@ # http://www.lon-capa.org/ # -=head1 NAME - -Apache::lonratsrv - -=head1 SYNOPSIS - -Handler that takes output from RAT and stores -it on disk. Handles the upper hidden frame of -the added window that comes up in RAT. (3 -frames come up in RAT server, code, and -output. This module handles server -connection.) - -This is part of the LearningOnline Network with CAPA project -described at http://www.lon-capa.org. - -=cut package Apache::lonratsrv; @@ -68,13 +51,6 @@ sub handler { $url=~s{/loadonly/ratserver$}{/save/ratserver}; my $fn=$r->filename; - my $lonDocRoot=$r->dir_config('lonDocRoot'); - if ( $fn =~ /\Q$lonDocRoot\E/ ) { - #internal authentication, needs fixup. - $fn = $url; - $fn=~s{^/~($LONCAPA::username_re)}{/home/$1/public_html}; - $fn=~s{/[^/]*/ratserver$}{}; - } my $errtext=''; my $infotext=''; my $outtext=''; @@ -114,3 +90,22 @@ ENDSCRIPT 1; __END__ + + +=head1 NAME + +Apache::lonratsrv + +=head1 SYNOPSIS + +Handler that takes output from RAT and stores +it on disk. Handles the upper hidden frame of +the added window that comes up in RAT. (3 +frames come up in RAT server, code, and +output. This module handles server +connection.) + +This is part of the LearningOnline Network with CAPA project +described at http://www.lon-capa.org. + +=cut