Diff for /loncom/auth/lonlogout.pm between versions 1.5 and 1.11

version 1.5, 2001/12/29 21:09:47 version 1.11, 2003/09/17 23:50:18
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 76  sub handler { Line 77  sub handler {
 # -------------------------------------------------------- Menu script and info  # -------------------------------------------------------- Menu script and info
   
     my $windowinfo=&Apache::lonmenu::close();      my $windowinfo=&Apache::lonmenu::close();
   # ---------------------------------------------------------------- Get handover
       &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['handover']);
       my $switch='';
       my $bodytag='';
       my $relogmessage='';
       if ($ENV{'form.handover'}) {
          $switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='.
      $ENV{'form.handover'}.'">';
          $bodytag=&Apache::loncommon::bodytag('Switching Server ...');
      } else {
          $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);
   <h1>$lt{'gb'}!</h1>
       $lt{'pe'} <a href="javascript:self.close();">$lt{'cw'}</a> $lt{'or'}
   <a href="/adm/login">$lt{'li'}</a>.
   ENDRELOG
      }
 # --------------------------------------------------------------- Screen Output  # --------------------------------------------------------------- Screen Output
             $r->print(<<ENDDOCUMENT);              $r->print(<<ENDDOCUMENT);
 <html>  <html>
 <head><title>The LearningOnline Network with CAPA Logout</title></head>  <head><title>The LearningOnline Network with CAPA Logout</title>
 <body bgcolor="#FFFFFF">  $switch
   </head>
   $bodytag
 $windowinfo  $windowinfo
 <h1>Goodbye!</h1></body>  $relogmessage
   </body>
 </html>  </html>
 ENDDOCUMENT  ENDDOCUMENT
             &Apache::lonnet::flushcourselogs();              &Apache::lonnet::flushcourselogs();

Removed from v.1.5  
changed lines
  Added in v.1.11


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