--- loncom/auth/lonlogin.pm 2011/11/07 18:16:10 1.149
+++ loncom/auth/lonlogin.pm 2012/08/27 00:52:45 1.152
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.149 2011/11/07 18:16:10 raeburn Exp $
+# $Id: lonlogin.pm,v 1.152 2012/08/27 00:52:45 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -92,7 +92,7 @@ sub handler {
}
$r->print(
$start_page
- .'
'.&mt('You are already logged in!').'
'
+ .''.&mt('You are already logged in!').'
'
.''.&mt('Please either [_1]continue the current session[_2] or [_3]log out[_4].',
'','','','').'
'
.$end_page
@@ -229,23 +229,23 @@ sub handler {
if ($spares) {
$spares.= '
';
}
-my %all_hostnames = &Apache::lonnet::all_hostnames();
-foreach my $hostid (sort
+ my %all_hostnames = &Apache::lonnet::all_hostnames();
+ foreach my $hostid (sort
{
&Apache::lonnet::hostname($a) cmp
&Apache::lonnet::hostname($b);
}
keys(%all_hostnames)) {
- next if ($hostid eq $lonhost || $Apache::lonnet::spareid{$hostid});
- my $hostname = &Apache::lonnet::hostname($hostid);
- next if (($last eq $hostname) || ($hostname eq ''));
- $spares.='
'.
- $hostname.'';
- $last=$hostname;
-}
-$r->print(
+ next if ($hostid eq $lonhost || $Apache::lonnet::spareid{$hostid});
+ my $hostname = &Apache::lonnet::hostname($hostid);
+ next if (($last eq $hostname) || ($hostname eq ''));
+ $spares.='
'.
+ $hostname.'';
+ $last=$hostname;
+ }
+ $r->print(
''
.''
.&mt('The LearningOnline Network with CAPA')
@@ -254,48 +254,48 @@ $r->print(
.''.&mt('The LearningOnline Network with CAPA').'
'
.'
'
.''.&mt('This LON-CAPA server is temporarily not available for login.').'
');
- if ($spares) {
- $r->print(''.&mt('Please attempt to login to one of the following servers:')
- .'
'
- .$spares);
- }
- $r->print(''
- .''
- );
-return OK;
-}
+ if ($spares) {
+ $r->print(''.&mt('Please attempt to login to one of the following servers:')
+ .'
'
+ .$spares);
+ }
+ $r->print('