Diff for /loncom/auth/lonlogout.pm between versions 1.9 and 1.13

version 1.9, 2003/05/23 21:18:56 version 1.13, 2004/07/21 20:19:01
Line 38  use Apache::File; Line 38  use Apache::File;
 use Apache::lonnet;  use Apache::lonnet;
 use Apache::lonmenu;  use Apache::lonmenu;
 use CGI::Cookie();  use CGI::Cookie();
   use Apache::lonlocal;
   
 sub handler {  sub handler {
     my $r = shift;      my $r = shift;
Line 70  sub handler { Line 71  sub handler {
                                  $sessionhash{'user.name'},                                   $sessionhash{'user.name'},
                                  $sessionhash{'user.home'},                                   $sessionhash{'user.home'},
                                  "Logout $ENV{'REMOTE_ADDR'}");                                   "Logout $ENV{'REMOTE_ADDR'}");
             $r->content_type('text/html');              &Apache::loncommon::content_type($r,'text/html');
             $r->send_http_header;              $r->send_http_header;
             return OK if $r->header_only;              return OK if $r->header_only;
 # -------------------------------------------------------- Menu script and info  # -------------------------------------------------------- Menu script and info
   
     my $windowinfo=&Apache::lonmenu::close();      my $windowinfo=&Apache::lonmenu::close();
       $windowinfo.=&Apache::lonnavmaps::close();
 # ---------------------------------------------------------------- Get handover  # ---------------------------------------------------------------- Get handover
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['handover']);      &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['handover']);
     my $switch='';      my $switch='';
Line 86  sub handler { Line 88  sub handler {
    $ENV{'form.handover'}.'">';     $ENV{'form.handover'}.'">';
        $bodytag=&Apache::loncommon::bodytag('Switching Server ...');         $bodytag=&Apache::loncommon::bodytag('Switching Server ...');
    } else {     } else {
        $bodytag=&Apache::loncommon::bodytag('Logged Out',undef,' ');         $bodytag=&Apache::loncommon::bodytag('Logged Out');
          my %lt=&Apache::lonlocal::texthash('gb' => 'Goodbye',
                                             'cw' => 'close this window',
                                             'li' => 'log in again',
                                             'pe' => 'Please either',
                                             'or' => 'or');
        $relogmessage=(<<ENDRELOG);         $relogmessage=(<<ENDRELOG);
 <h1>Goodbye!</h1>  <h1>$lt{'gb'}!</h1>
 Please either <a href="javascript:self.close();">close this window</a> or      $lt{'pe'} <a href="javascript:self.close();">$lt{'cw'}</a> $lt{'or'}
 <a href="/adm/login">log in again</a>.  <a href="/adm/login">$lt{'li'}</a>.
 ENDRELOG  ENDRELOG
    }     }
 # --------------------------------------------------------------- Screen Output  # --------------------------------------------------------------- Screen Output

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


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