Diff for /loncom/homework/lonhomework.pm between versions 1.159 and 1.161

version 1.159, 2003/12/22 22:15:27 version 1.161, 2004/01/28 15:45:44
Line 211  sub check_access { Line 211  sub check_access {
     &Apache::lonxml::debug("time:".time);      &Apache::lonxml::debug("time:".time);
           
     my $allowed=&check_ip_acc(&Apache::lonnet::EXT("resource.$id.acc"));      my $allowed=&check_ip_acc(&Apache::lonnet::EXT("resource.$id.acc"));
     if (!$allowed) {      if (!$allowed && ($Apache::lonhomework::browse ne 'F')) {
  $status='INVALID_ACCESS';   $status='INVALID_ACCESS';
  $date=&mt("can not be accessed from your location.");   $date=&mt("can not be accessed from your location.");
  return($status,$date);   return($status,$date);
Line 524  sub editxmlmode { Line 524  sub editxmlmode {
  &renderpage($request,$file);   &renderpage($request,$file);
     } else {      } else {
  my ($rows,$cols) = &Apache::edit::textarea_sizes(\$problem);   my ($rows,$cols) = &Apache::edit::textarea_sizes(\$problem);
  my $xml_help = Apache::loncommon::helpLatexCheatsheet("Problem_Editor_XML_Index",   my $xml_help = '<table><tr><td>'.
       "Problem Editing Help");      &Apache::loncommon::helpLatexCheatsheet("Problem_Editor_XML_Index",
       "Problem Editing Help").
       '</td><td>'.
          &Apache::loncommon::help_open_faq(5).
          &Apache::loncommon::help_open_bug('Authoring').'</td></tr></table>';
  if ($cols > 80) { $cols = 80; }   if ($cols > 80) { $cols = 80; }
  if ($cols < 70) { $cols = 70; }   if ($cols < 70) { $cols = 70; }
  if ($rows < 20) { $rows = 20; }   if ($rows < 20) { $rows = 20; }
Line 553  sub renderpage { Line 557  sub renderpage {
     my ($request,$file) = @_;      my ($request,$file) = @_;
   
     my (@targets) = &get_target();      my (@targets) = &get_target();
       &Apache::lonhomework::showhashsubset(\%ENV,'form.');
     &Apache::lonxml::debug("Running targets ".join(':',@targets));      &Apache::lonxml::debug("Running targets ".join(':',@targets));
     foreach my $target (@targets) {      foreach my $target (@targets) {
  #my $t0 = [&gettimeofday()];   #my $t0 = [&gettimeofday()];
Line 701  sub handler { Line 706  sub handler {
     my $request=$_[0];      my $request=$_[0];
           
     $Apache::lonxml::debug=$ENV{'user.debug'};      $Apache::lonxml::debug=$ENV{'user.debug'};
   
     if (&setupheader($request)) { return OK; }      if (&setupheader($request)) { return OK; }
     $ENV{'request.uri'}=$request->uri;      $ENV{'request.uri'}=$request->uri;
   

Removed from v.1.159  
changed lines
  Added in v.1.161


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