Diff for /rat/lonwrapper.pm between versions 1.12 and 1.13

version 1.12, 2003/04/15 03:53:03 version 1.13, 2003/05/13 15:13:17
Line 66  sub handler { Line 66  sub handler {
 #  #
 # Actual URL  # Actual URL
 #  #
       if ($url=~/^\/uploaded\//) {        if ($url=~/\.(problem|exam|quiz|assess|survey|form|library)$/) {
   $url=&Apache::lonnet::tokenwrapper($url);  #
       }  # This is uploaded homework
       $url.=(($url=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; #reappend the query arguments  #
       my $events='onLoad="'.&Apache::lonmenu::loadevents.            $ENV{'request.state'}='uploaded';
   '" onUnload="'.&Apache::lonmenu::unloadevents.'"';            &Apache::lonhomework::renderpage($r,$url);
       my $script=&Apache::lonmenu::registerurl(1,undef);        } else {
   #
   # This is not homework
   #
     if ($url=~/^\/uploaded\//) {
         $url=&Apache::lonnet::tokenwrapper($url);
     }
     $url.=(($url=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; 
                                                    # reappend the query arguments
     my $events='onLoad="'.&Apache::lonmenu::loadevents.
         '" onUnload="'.&Apache::lonmenu::unloadevents.'"';
     my $script=&Apache::lonmenu::registerurl(1,undef);
   
       if ($ENV{'browser.interface'} eq 'textual') {    if ($ENV{'browser.interface'} eq 'textual') {
 #  #
 # ssi-based rendering for text-based interface  # ssi-based rendering for text-based interface
 #  #
   $r->print('<html><head>'.        $r->print('<html><head>'.
                 &Apache::lonmenu::registerurl(1).   &Apache::lonmenu::registerurl(1).
                 '</head><body bgcolor="#FFFFFF">'.   '</head><body bgcolor="#FFFFFF">'.
                 &Apache::lonmenu::menubuttons(1).   &Apache::lonmenu::menubuttons(1).
                 &Apache::lonnet::ssi_body($url).'</body></html>');   &Apache::lonnet::ssi_body($url).'</body></html>');
       } elsif ($ENV{'environment.remote'} eq 'off') {    } elsif ($ENV{'environment.remote'} eq 'off') {
 #  #
 # This is inline remote  # This is inline remote
 #   # 
   $r->print(<<ENDDOCUMENTINL);        $r->print(<<ENDDOCUMENTINL);
 <html>  <html>
 <head>  <head>
 $script  $script
Line 98  $script Line 109  $script
 </frameset>  </frameset>
 </html>  </html>
 ENDDOCUMENTINL  ENDDOCUMENTINL
       } else {            } else {
 #  #
 # frame-based rendering for graphical interface  # frame-based rendering for graphical interface
 #  #
Line 113  $script Line 124  $script
 </frameset>  </frameset>
 </html>  </html>
 ENDDOCUMENT  ENDDOCUMENT
       }            }
   }        } # not homework
     } # not just the menu
   return OK;    return OK;
 }  } # handler
   
 1;  1;
 __END__  __END__

Removed from v.1.12  
changed lines
  Added in v.1.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.