Diff for /loncom/homework/lonhomework.pm between versions 1.23 and 1.25

version 1.23, 2000/12/21 15:34:44 version 1.25, 2001/01/06 15:32:22
Line 1 Line 1
 # The LON-CAPA Homework handler  # The LON-CAPA Homework handler
 # Guy Albertelli  # Guy Albertelli
 # 11/30 Gerd Kortemeyer  # 11/30 Gerd Kortemeyer
   # 6/1 Gerd Kortemeyer
   
 package Apache::lonhomework;  package Apache::lonhomework;
 use strict;  use strict;
Line 11  use Apache::inputtags; Line 12  use Apache::inputtags;
 use Apache::structuretags;  use Apache::structuretags;
 use Apache::response;  use Apache::response;
 use Apache::hint;  use Apache::hint;
   use Apache::Constants(:common);
   
 sub get_target {  sub get_target {
   if ( $ENV{'request.state'} eq "published") {    if ( $ENV{'request.state'} eq "published") {
Line 91  sub check_date { Line 93  sub check_date {
     $datemsg = "was due as $lastdate, and answers will be available at $date";      $datemsg = "was due as $lastdate, and answers will be available at $date";
   }    }
   &Apache::lonxml::debug("sending back :$status:$datemsg:");    &Apache::lonxml::debug("sending back :$status:$datemsg:");
     if ($ENV{'request.state'} eq "construct") {
       &Apache::lonxml::debug("in construction ignoring dates");
       $status='CAN_ANSWER';
       $datemsg='is in under construction';
     }
   return ($status,$datemsg);    return ($status,$datemsg);
 }  }
   
Line 107  sub handler { Line 114  sub handler {
     $request->content_type('text/html');      $request->content_type('text/html');
   }    }
   $request->send_http_header;    $request->send_http_header;
   return 'OK' if $request->header_only;    return OK if $request->header_only;
       
   &Apache::lonhomework::send_header($request);    &Apache::lonhomework::send_header($request);
       
Line 170  sub handler { Line 177  sub handler {
   }    }
   &Apache::lonhomework::send_footer($request);    &Apache::lonhomework::send_footer($request);
       
   return 'OK';    return OK;
   
 }  }
   

Removed from v.1.23  
changed lines
  Added in v.1.25


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.