version 1.6, 2003/01/29 15:22:06
|
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 79 sub handler {
|
Line 80 sub handler {
|
# ---------------------------------------------------------------- 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=''; |
|
my $bodytag=''; |
|
my $relogmessage=''; |
if ($ENV{'form.handover'}) { |
if ($ENV{'form.handover'}) { |
$switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='. |
$switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='. |
$ENV{'form.handover'}.'">'; |
$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><title>The LearningOnline Network with CAPA Logout</title> |
$switch |
$switch |
</head> |
</head> |
<body bgcolor="#FFFFFF"> |
$bodytag |
$windowinfo |
$windowinfo |
<h1>Goodbye!</h1></body> |
$relogmessage |
|
</body> |
</html> |
</html> |
ENDDOCUMENT |
ENDDOCUMENT |
&Apache::lonnet::flushcourselogs(); |
&Apache::lonnet::flushcourselogs(); |