version 1.28, 2010/07/22 21:44:25
|
version 1.28.2.1, 2010/08/13 00:06:27
|
Line 59 sub do_redirect {
|
Line 59 sub do_redirect {
|
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Switching Server ...',undef, |
&Apache::loncommon::start_page('Switching Server ...',undef, |
{'redirect' => [0.5,$url], |
{'redirect' => [0.5,$url], |
|
'no_inline_link' => 1, |
'only_body' => $only_body,}); |
'only_body' => $only_body,}); |
my $end_page = &Apache::loncommon::end_page(); |
my $end_page = &Apache::loncommon::end_page(); |
$r->print($start_page.$extra_text.$end_page); |
$r->print($start_page.$extra_text.$end_page); |
Line 159 sub handler {
|
Line 160 sub handler {
|
return OK; |
return OK; |
} |
} |
# -------------------------------------------------------- Menu script and info |
# -------------------------------------------------------- Menu script and info |
|
|
|
my $windowinfo= |
|
&Apache::lonmenu::close(). |
|
&Apache::lonnavmaps::close(); |
# ---------------------------------------------------------------- Get handover |
# ---------------------------------------------------------------- Get handover |
|
|
my %info=('ip' => $ENV{'REMOTE_ADDR'}, |
my %info=('ip' => $ENV{'REMOTE_ADDR'}, |
Line 186 sub handler {
|
Line 190 sub handler {
|
'&token='.$token; |
'&token='.$token; |
# --------------------------------------------------------------- Screen Output |
# --------------------------------------------------------------- Screen Output |
&Apache::lonnet::flushcourselogs(); |
&Apache::lonnet::flushcourselogs(); |
return &do_redirect($r, $url, 0); |
return &do_redirect($r,$url,0,$windowinfo); |
} |
} |
|
|
1; |
1; |