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

version 1.3, 2000/08/02 16:47:06 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>'.&setup_vars.&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 {  sub setup_vars {
   $Apache::lonhomework::target="web";    my ($target) = @_;
   return '<script>$external::target=web;</script>';    return ';$external::target='.$target.';';
 }  }
   
 sub send_header {  sub send_header {

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


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