--- loncom/auth/lonlogout.pm 2001/12/29 21:09:47 1.5 +++ loncom/auth/lonlogout.pm 2003/09/17 23:50:18 1.11 @@ -1,7 +1,7 @@ # The LearningOnline Network # Logout Handler # -# $Id: lonlogout.pm,v 1.5 2001/12/29 21:09:47 www Exp $ +# $Id: lonlogout.pm,v 1.11 2003/09/17 23:50:18 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -38,6 +38,7 @@ use Apache::File; use Apache::lonnet; use Apache::lonmenu; use CGI::Cookie(); +use Apache::lonlocal; sub handler { my $r = shift; @@ -76,14 +77,38 @@ sub handler { # -------------------------------------------------------- Menu script and info 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=''; + $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=(<$lt{'gb'}! + $lt{'pe'} $lt{'cw'} $lt{'or'} +$lt{'li'}. +ENDRELOG + } # --------------------------------------------------------------- Screen Output $r->print(< -The LearningOnline Network with CAPA Logout - +The LearningOnline Network with CAPA Logout +$switch + +$bodytag $windowinfo -

Goodbye!

+$relogmessage + ENDDOCUMENT &Apache::lonnet::flushcourselogs();