--- loncom/auth/lonlogin.pm 2008/07/08 17:56:21 1.104
+++ loncom/auth/lonlogin.pm 2009/08/12 19:44:18 1.106.4.2
@@ -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.106.4.2 2009/08/12 19:44:18 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -84,7 +84,7 @@ sub handler {
$r->print(
$start_page
.'
'.&mt('You are already logged in!').'
'
- .''.&mt('Please either [_1]continue the current session[_2] or [_3]logout[_4].',
+ .'
'.&mt('Please either [_1]continue the current session[_2] or [_3]log out[_4].',
'','','','').'
'
.''.&mt('Login problems?').'
'
.$end_page
@@ -201,7 +201,7 @@ sub handler {
$hostname.
'/adm/login?domain='.$authdomain.'">'.
$hostname.''.
- ' (preferred)'.$/;
+ ' '.&mt('(preferred)').''.$/;
$last=$hostname;
}
$spares.= '
';
@@ -266,6 +266,14 @@ sub handler {
if ($login eq '') {
$login = $iconpath.'/'.&mt('userauthentication.gif');
}
+ my $showbanner = 1;
+ my $showmainlogo = 1;
+ if (defined(&Apache::loncommon::designparm('login.showlogo_img',$domain))) {
+ $showbanner = &Apache::loncommon::designparm('login.showlogo_img',$domain);
+ }
+ if (defined(&Apache::loncommon::designparm('login.showlogo_logo',$domain))) {
+ $showmainlogo = &Apache::loncommon::designparm('login.showlogo_logo',$domain);
+ }
my $showadminmail=&Apache::loncommon::designparm('login.adminmail',$domain);
my $showcoursecat =
&Apache::loncommon::designparm('login.coursecatalog',$domain);
@@ -275,7 +283,8 @@ sub handler {
my $now=time;
my $js = (<
+
ENDSCRIPT
@@ -346,8 +356,7 @@ my %lt=&Apache::lonlocal::texthash(
'un' => 'Username',
'pw' => 'Password',
'dom' => 'Domain',
- 'perc' => 'percent',
- 'load' => 'Load',
+ 'load' => 'Server Load',
'userload' => 'User Load',
'about' => 'About LON-CAPA',
'access' => 'Accessibility Options',
@@ -379,7 +388,7 @@ my %lt=&Apache::lonlocal::texthash(
if ($fullgraph) {
$r->print(
- '');
+ '');
}
$r->print(<print(<print(<
- |
+
+HEADER
+ if ($showbanner) {
+ $r->print(<
+ENDBANNER
+ }
+ $r->print(<
|
@@ -459,9 +477,15 @@ ENDSERVERFORM
+ENDSTART
+ if ($showmainlogo) {
+ $r->print(<
+ENDLOGO
+ }
+ $r->print(<
@@ -473,12 +497,12 @@ ENDSERVERFORM
ENDTOP
-} else {
- $r->print('The LearningOnline Network with CAPA'
- .''.&mt('Text-based Interface Login').''
- .$announcements);
-}
- $r->print(' | ';
$r->print(<
-
+
+
-
+
$logintitle
$noscript_warning
@@ -571,12 +595,12 @@ ENDLOGIN
-
+
$lt{'dom'}:
|
-
+ |
$domain
|
@@ -584,24 +608,24 @@ ENDLOGIN
$lt{'serv'}:
|
-
+ |
$lonhost ($role)
|
-
- $lt{'load'}:
+ |
+ $lt{'load'}:
|
-
- $loadpercent $lt{'perc'}
+ |
+ $loadpercent%
|
-
- $lt{'userload'}:
+ |
+ $lt{'userload'}:
|
-
- $userloadpercent $lt{'perc'}
+ |
+ $userloadpercent%
|
@@ -637,8 +661,10 @@ $domainlogo
$helpdeskscript
@@ -666,6 +692,7 @@ sub contactdisplay {
my $thisurl = &escape('/adm/login');
$$helpdeskscript = <<"ENDSCRIPT";
ENDSCRIPT
}
| |