Diff for /loncom/homework/lonhomework.pm between versions 1.2 and 1.6

version 1.2, 2000/07/25 21:27:30 version 1.6, 2000/08/11 14:25:24
Line 12  use Apache::structuretags; Line 12  use Apache::structuretags;
 sub handler {  sub handler {
   my $request=shift;    my $request=shift;
   
     my $target=&get_target();
   $request->content_type('text/html');    $request->content_type('text/html');
   $request->send_http_header;    $request->send_http_header;
   &Apache::lonhomework::send_header($request);    &Apache::lonhomework::send_header($request);
   my $file = "/home/httpd/html".$request->uri;    my $file = "/home/httpd/html".$request->uri;
   my %mystyle;    my %mystyle;
     my $result = '';
   &Apache::inputtags::initialize_inputtags;    &Apache::inputtags::initialize_inputtags;
   my $result = Apache::lonxml::xmlparse("web",'<scriptlib>/home/httpd/html/res/103/albertel/default_homework</scriptlib>'.&getfile($file),%mystyle);    $result = Apache::lonxml::xmlparse($target, &getfile($file),
    &getfile('/home/httpd/html/res/103/albertel/default_homework').&setup_vars($target),%mystyle);
   #$request->print("Result follows:");    #$request->print("Result follows:");
   $request->print($result);    $request->print($result);
   #$request->print(":Result ends");    #$request->print(":Result ends");
   &Apache::lonhomework::send_footer($request);    &Apache::lonhomework::send_footer($request);
 }  }
   
   sub get_target {
     return "web";
   }
   
   sub setup_vars {
     my ($target) = @_;
     return ';$external::target='.$target.';';
   }
   
 sub send_header {  sub send_header {
   my ($request)= @_;    my ($request)= @_;
   $request->print('<html>');    $request->print('<html>');

Removed from v.1.2  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>