Diff for /loncom/lonnet/perl/lonrep.pm between versions 1.13 and 1.14

version 1.13, 2007/04/26 01:18:47 version 1.14, 2007/10/02 01:09:53
Line 32  use strict; Line 32  use strict;
 use Apache::Constants qw(:common :http);  use Apache::Constants qw(:common :http);
 use Apache::lonnet;  use Apache::lonnet;
 use Apache::File();  use Apache::File();
 use CGI::Cookie();  
   
 sub update_filename {  sub update_filename {
     my ($r,$filename) = @_;      my ($r,$filename) = @_;
Line 84  sub handler { Line 83  sub handler {
       }        }
               return OK;                return OK;
           }            }
           my %cookies=CGI::Cookie->parse($r->header_in('Cookie'));            my $handle = &Apache::lonnet::check_for_valid_session($r);
           my $lonid=$cookies{'lonID'};            if ($handle) {
           if ($lonid) {       $r->log_reason('Replication failed for '.$handle);
      $r->log_reason('Replication failed for '.$lonid->value);  
              return $response;               return $response;
   } else {    } else {
      $r->log_reason('Replication failed for unknown user');        $r->log_reason('Replication failed for unknown user'); 

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


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