--- loncom/auth/lonlogin.pm 2008/12/10 17:45:29 1.106.2.1
+++ loncom/auth/lonlogin.pm 2009/03/10 18:18:31 1.114
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Login Screen
#
-# $Id: lonlogin.pm,v 1.106.2.1 2008/12/10 17:45:29 raeburn Exp $
+# $Id: lonlogin.pm,v 1.114 2009/03/10 18:18:31 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=
@@ -204,460 +197,295 @@ sub handler {
' '.&mt('(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.'';
- $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/\,/\
-HEADER
- if ($showbanner) {
- $r->print(< | ||||||||||||||||
- - - | - - - | - - - | - | |||||||||||||
-
|
-
-
- - - - - |
-ENDSTART
- if ($showmainlogo) {
- $r->print(< '; +} +my $logintitle; +if ($loginheader eq 'text') { + $logintitle =' '.$lt{'log'}.''; +} else { + $logintitle = ''; +} - -
- | | |||||||||||||
-ENDTOP
- } else {
- $r->print('The LearningOnline Network with CAPA' - .''.&mt('Text-based Interface Login').'' - .$announcements); - } - $r->print(' +LFORM - -
+ $logintitle
+
+
+
+ $loginhelp + $forgotpw + $contactblock $newuserlink - - - -
-
-
- | $announcements |
-
-
-
- | | |||||||||||||
- + $coursecatalog + $lt{'about'} + + +
+ |
$lt{'dom'}:
|
-
+ |
$domain
|
+ |
$lt{'serv'}:
|
-
+ |
$lonhost ($role)
|
+ |
$lt{'load'}:
|
-
+ |
$loadpercent $lt{'perc'}
|
+ |
$lt{'userload'}:
|
-
+ |
$userloadpercent $lt{'perc'}
|
|