Diff for /loncom/auth/switchserver.pm between versions 1.35.2.7 and 1.35.2.9

version 1.35.2.7, 2024/07/02 19:42:06 version 1.35.2.9, 2024/10/09 15:33:08
Line 31  package Apache::switchserver; Line 31  package Apache::switchserver;
 use strict;  use strict;
 use Apache::Constants qw(:common :remotehost);  use Apache::Constants qw(:common :remotehost);
 use Apache::lonnet;  use Apache::lonnet;
   use Apache::loncommon;
   use Apache::lonmenu;
 use Digest::MD5 qw(md5_hex);  use Digest::MD5 qw(md5_hex);
 use CGI::Cookie();  use CGI::Cookie();
 use Apache::lonlocal;  use Apache::lonlocal;
Line 63  sub do_redirect { Line 65  sub do_redirect {
     my $start_page =       my $start_page = 
  &Apache::loncommon::start_page('Switching Server ...',undef,   &Apache::loncommon::start_page('Switching Server ...',undef,
        {'redirect'       => [$delay,$url,'',1],         {'redirect'       => [$delay,$url,'',1],
  'only_body'      => $only_body,});   'only_body'      => $only_body,
                                           'switchserver'   => 1,
                                           'links_disabled' => 1,
                                           'no_inline_link' => 1,});
     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')) {      unless ($env{'user.name'} eq 'public' && ($env{'user.domain'} eq 'public')) {
Line 267  sub handler { Line 272  sub handler {
     }      }
 # -------------------------------------------------------- Menu script and info  # -------------------------------------------------------- Menu script and info
   
       my $windowinfo = &Apache::lonmenu::close();
   
 # ---------------------------------------------------------------- Get handover  # ---------------------------------------------------------------- Get handover
   
     my ($is_balancer,$setcookie,$newcookieid,$otherbalcookie);      my ($is_balancer,$setcookie,$newcookieid,$otherbalcookie);
Line 333  sub handler { Line 340  sub handler {
  '&username='.$env{'user.name'}.   '&username='.$env{'user.name'}.
  '&token='.$token;   '&token='.$token;
 # --------------------------------------------------------------- Screen Output  # --------------------------------------------------------------- Screen Output
     return &do_redirect($r, $url, $only_body, $ssologoutscript);      return &do_redirect($r, $url, $only_body, $windowinfo.$ssologoutscript);
 }  }
   
 1;  1;

Removed from v.1.35.2.7  
changed lines
  Added in v.1.35.2.9


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