'.&mt('You are already logged in!').'
' .''.&mt('Please either [_1]continue the current session[_2] or [_3]log out[_4].', '','','','').'
' + .'--- loncom/auth/lonlogin.pm 2024/09/18 15:11:31 1.208 +++ loncom/auth/lonlogin.pm 2025/02/09 22:42:12 1.209 @@ -1,7 +1,7 @@ # The LearningOnline Network # Login Screen # -# $Id: lonlogin.pm,v 1.208 2024/09/18 15:11:31 raeburn Exp $ +# $Id: lonlogin.pm,v 1.209 2025/02/09 22:42:12 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -248,6 +248,9 @@ sub handler { } } + (undef,undef,undef,my $clientmathml,my $clientunicode,undef,my $clientmobile) = + &Apache::loncommon::decode_user_agent($r); + # # If browser sent an old cookie for which the session file had been removed # check if configuration for user's domain has a portal URL set. If so @@ -268,8 +271,12 @@ sub handler { # -------------------------------- Prevent users from attempting to login twice if ($handle ne '') { &Apache::lonnet::transfer_profile_to_env($lonidsdir,$handle); + my $args = {}; + if ($clientunicode && !$clientmathml) { + $args->{'browser.unicode'} = 1; + } my $start_page = - &Apache::loncommon::start_page('Already logged in'); + &Apache::loncommon::start_page('Already logged in','',$args); my $end_page = &Apache::loncommon::end_page(); my $dest = '/adm/roles'; @@ -380,9 +387,11 @@ sub handler { } $r->print( $start_page + .'
'.&mt('You are already logged in!').'
' .''.&mt('Please either [_1]continue the current session[_2] or [_3]log out[_4].', '','','','').'
' + .''.&mt('Please attempt to login to one of the following servers:') .'
' .$spares); } - $r->print('' + $r->print('