version 1.28.2.3, 2010/09/06 15:45:08
|
version 1.29, 2010/08/18 19:25:12
|
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); |
unless ($env{'user.name'} eq 'public' && ($env{'user.domain'} eq 'public')) { |
|
$r->register_cleanup(\&flush_course_logs); |
|
} |
|
return OK; |
return OK; |
|
|
} |
} |
|
|
sub flush_course_logs { |
|
&Apache::lonnet::flushcourselogs(); |
|
return OK; |
|
} |
|
|
|
sub handler { |
sub handler { |
my ($r) = @_; |
my ($r) = @_; |
|
|
Line 172 sub handler {
|
Line 163 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 201 sub handler {
|
Line 189 sub handler {
|
'&username='.$env{'user.name'}. |
'&username='.$env{'user.name'}. |
'&token='.$token; |
'&token='.$token; |
# --------------------------------------------------------------- Screen Output |
# --------------------------------------------------------------- Screen Output |
return &do_redirect($r,$url,0,$windowinfo); |
&Apache::lonnet::flushcourselogs(); |
|
return &do_redirect($r, $url, 0); |
} |
} |
|
|
1; |
1; |