--- loncom/auth/lonlogin.pm 2008/07/08 17:56:21 1.104
+++ loncom/auth/lonlogin.pm 2008/12/15 11:44:46 1.113
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.104 2008/07/08 17:56:21 bisitz Exp $
+# $Id: lonlogin.pm,v 1.113 2008/12/15 11:44:46 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -102,15 +102,8 @@ sub handler {
# ----------------------------------------------------------- Process Interface
$env{'form.interface'}=~s/\W//g;
- my $textbrowsers=$r->dir_config('lonTextBrowsers');
my $httpbrowser=$ENV{"HTTP_USER_AGENT"};
- foreach (split(/\:/,$textbrowsers)) {
- if ($httpbrowser=~/$_/i) {
- $env{'form.interface'}='textual';
- }
- }
-
my $fullgraph=($env{'form.interface'} ne 'textual');
my $iconpath=
@@ -201,440 +194,298 @@ sub handler {
$hostname.
'/adm/login?domain='.$authdomain.'">'.
$hostname.''.
- ' (preferred)'.$/;
- $last=$hostname;
- }
- $spares.= '
';
- 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);
- $spares.='
'.
- $hostname.'';
+ ' '.&mt('(preferred)').''.$/;
$last=$hostname;
}
- $r->print(
- ''
- .'
'.&mt('Please attempt to login to one of the following servers:').'
' - .$spares - .'' - .'' - ); - return OK; - } +$spares.= ''.&mt('Please attempt to login to one of the following servers:').'
' + .$spares + .'' + .'' +); +return OK; +} # ----------------------------------------------- Apparently we are in business - $servadm=~s/\,/\- | |||||||||
- - - | - - - | - - - | - | ||||||
-
|
-
-
- - - - - |
- |
-
-
- - | ||||||
-ENDTOP
-} else {
- $r->print('The LearningOnline Network with CAPA' - .''.&mt('Text-based Interface Login').'' - .$announcements); -} - $r->print(' |