version 1.101, 2008/02/24 23:18:37
|
version 1.106.2.2, 2008/12/25 05:53:17
|
Line 47 sub handler {
|
Line 47 sub handler {
|
$ENV{'REDIRECT_QUERY_STRING'}), |
$ENV{'REDIRECT_QUERY_STRING'}), |
['interface','username','domain','firsturl','localpath','localres', |
['interface','username','domain','firsturl','localpath','localres', |
'token']); |
'token']); |
|
if (!defined($env{'form.firsturl'})) { |
|
&Apache::lonacc::get_posted_cgi($r,['firsturl']); |
|
} |
|
|
# -- check if they are a migrating user |
# -- check if they are a migrating user |
if (defined($env{'form.token'})) { |
if (defined($env{'form.token'})) { |
Line 80 sub handler {
|
Line 83 sub handler {
|
&Apache::loncommon::end_page(); |
&Apache::loncommon::end_page(); |
$r->print( |
$r->print( |
$start_page |
$start_page |
.'<h1>'.&mt('You are already logged in').'</h1>' |
.'<h1>'.&mt('You are already logged in!').'</h1>' |
.'<p>'.&mt('Please either [_1]continue the current session[_2] or [_3]logout[_4].', |
.'<p>'.&mt('Please either [_1]continue the current session[_2] or [_3]logout[_4].', |
'<a href="/adm/roles">','</a>','<a href="/adm/logout">','</a>').'</p>' |
'<a href="/adm/roles">','</a>','<a href="/adm/logout">','</a>').'</p>' |
.'<p><a href="/adm/loginproblems.html">'.&mt('Login problems?').'</a></p>' |
.'<p><a href="/adm/loginproblems.html">'.&mt('Login problems?').'</a></p>' |
Line 198 sub handler {
|
Line 201 sub handler {
|
$hostname. |
$hostname. |
'/adm/login?domain='.$authdomain.'">'. |
'/adm/login?domain='.$authdomain.'">'. |
$hostname.'</a>'. |
$hostname.'</a>'. |
' (preferred)</font>'.$/; |
' '.&mt('(preferred)').'</font>'.$/; |
$last=$hostname; |
$last=$hostname; |
} |
} |
$spares.= '<br />'; |
$spares.= '<br />'; |
Line 218 sub handler {
|
Line 221 sub handler {
|
$hostname.'</a>'; |
$hostname.'</a>'; |
$last=$hostname; |
$last=$hostname; |
} |
} |
$r->print(<<ENDTROUBLE); |
$r->print( |
<html> |
'<html>' |
<head><title>The LearningOnline Network with CAPA</title></head> |
.'<head><title>' |
<body bgcolor="#FFFFFF"> |
.&mt('The LearningOnline Network with CAPA') |
<img src="/adm/lonKaputt/lonlogo_broken.gif" align="right" /> |
.'</title></head>' |
<h3>This LON-CAPA server is temporarily not available for login</h3> |
.'<body bgcolor="#FFFFFF">' |
<p>Please attempt to login to one of the following servers:</p>$spares |
.'<h1>'.&mt('The LearningOnline Network with CAPA').'</h1>' |
</body> |
.'<img src="/adm/lonKaputt/lonlogo_broken.gif" align="right" />' |
</html> |
.'<h3>'.&mt('This LON-CAPA server is temporarily not available for login.').'</h3>' |
ENDTROUBLE |
.'<p>'.&mt('Please attempt to login to one of the following servers:').'</p>' |
|
.$spares |
|
.'</body>' |
|
.'</html>' |
|
); |
return OK; |
return OK; |
} |
} |
|
|
Line 259 ENDTROUBLE
|
Line 266 ENDTROUBLE
|
if ($login eq '') { |
if ($login eq '') { |
$login = $iconpath.'/'.&mt('userauthentication.gif'); |
$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 $showadminmail=&Apache::loncommon::designparm('login.adminmail',$domain); |
my $showcoursecat = |
my $showcoursecat = |
&Apache::loncommon::designparm('login.coursecatalog',$domain); |
&Apache::loncommon::designparm('login.coursecatalog',$domain); |
Line 340 my %lt=&Apache::lonlocal::texthash(
|
Line 355 my %lt=&Apache::lonlocal::texthash(
|
'pw' => 'Password', |
'pw' => 'Password', |
'dom' => 'Domain', |
'dom' => 'Domain', |
'perc' => 'percent', |
'perc' => 'percent', |
'load' => 'Load', |
'load' => 'Server Load', |
'userload' => 'User Load', |
'userload' => 'User Load', |
'about' => 'About LON-CAPA', |
'about' => 'About LON-CAPA', |
'access' => 'Accessibility Options', |
'access' => 'Accessibility Options', |
Line 403 ENDSERVERFORM
|
Line 418 ENDSERVERFORM
|
if ($shownewuserlink) { |
if ($shownewuserlink) { |
$newuserlink = &newuser_link($lt{'newuser'}); |
$newuserlink = &newuser_link($lt{'newuser'}); |
} |
} |
if ($fullgraph) { $r->print(<<ENDTOP); |
if ($fullgraph) { |
|
$r->print(<<HEADER); |
<!-- The LON-CAPA Header --> |
<!-- The LON-CAPA Header --> |
<tr> |
<tr> |
|
|
<!-- Row 1 Columns 2-4 --> |
<!-- Row 1 Columns 2-4 --> |
<td width="100%" height=75 colspan=4 align="left" valign="top" bgcolor="$pgbg"><img src="$img" border=0 alt="The Learning Online Network with CAPA" /></td> |
<td width="100%" height=75 colspan=4 align="left" valign="top" bgcolor="$pgbg"> |
|
HEADER |
|
if ($showbanner) { |
|
$r->print(<<ENDBANNER); |
|
<img src="$img" border=0 alt="The Learning Online Network with CAPA" /> |
|
ENDBANNER |
|
} |
|
$r->print(<<ENDSTART); |
|
</td> |
</tr> |
</tr> |
|
|
<!-- The gray bar that starts the two table frames --> |
<!-- The gray bar that starts the two table frames --> |
Line 452 ENDSERVERFORM
|
Line 476 ENDSERVERFORM
|
<!-- The right main column holding the large LON-CAPA logo--> |
<!-- The right main column holding the large LON-CAPA logo--> |
<!-- Rows 3-4 Column 3 --> |
<!-- Rows 3-4 Column 3 --> |
<td align="center" valign="top" width="100%" height="100%" bgcolor="$mainbg"> |
<td align="center" valign="top" width="100%" height="100%" bgcolor="$mainbg"> |
|
ENDSTART |
|
if ($showmainlogo) { |
|
$r->print(<<ENDLOGO); |
<center> |
<center> |
<img src="$logo" alt="" /> |
<img src="$logo" alt="" /> |
</center> |
</center> |
|
ENDLOGO |
|
} |
|
$r->print(<<ENDTOP); |
</td> |
</td> |
|
|
<!-- Row 3 Column 4 --> |
<!-- Row 3 Column 4 --> |
Line 466 ENDSERVERFORM
|
Line 496 ENDSERVERFORM
|
<!-- Row 4 Column 1 --> |
<!-- Row 4 Column 1 --> |
<td align="center" valign="middle" bgcolor="$sidebg"> |
<td align="center" valign="middle" bgcolor="$sidebg"> |
ENDTOP |
ENDTOP |
} else { |
} else { |
$r->print('<h1>The Learning<i>Online</i> Network with CAPA</h1>' |
$r->print('<h1>The Learning<i>Online</i> Network with CAPA</h1>' |
.'<h2>'.&mt('Text-based Interface Login').'</h2>' |
.'<h2>'.&mt('Text-based Interface Login').'</h2>' |
.$announcements); |
.$announcements); |
} |
} |
$r->print('<form name="client" onsubmit="return(send())">'); |
$r->print('<form name="client" onsubmit="return(send())">'); |
unless ($fullgraph) { |
unless ($fullgraph) { |
$r->print(<<ENDACCESSOPTIONS); |
$r->print(<<ENDACCESSOPTIONS); |
Line 483 ENDTOP
|
Line 513 ENDTOP
|
<br /> |
<br /> |
<input type="checkbox" name="remember" /> $lt{'remember'}<hr /> |
<input type="checkbox" name="remember" /> $lt{'remember'}<hr /> |
ENDACCESSOPTIONS |
ENDACCESSOPTIONS |
} else { |
} else { |
$r->print(<<ENDNOOPT); |
$r->print(<<ENDNOOPT); |
<input type="hidden" name="imagesuppress" value="" /> |
<input type="hidden" name="imagesuppress" value="" /> |
<input type="hidden" name="embedsuppress" value="" /> |
<input type="hidden" name="embedsuppress" value="" /> |
<input type="hidden" name="appletsuppress" value="" /> |
<input type="hidden" name="appletsuppress" value="" /> |
Line 492 ENDACCESSOPTIONS
|
Line 522 ENDACCESSOPTIONS
|
<input type="hidden" name="blackwhite" value="" /> |
<input type="hidden" name="blackwhite" value="" /> |
<input type="hidden" name="remember" value="" /> |
<input type="hidden" name="remember" value="" /> |
ENDNOOPT |
ENDNOOPT |
} |
} |
my $logintitle; |
my $logintitle; |
if ($loginheader eq 'text') { |
if ($loginheader eq 'text') { |
$logintitle = '<td bgcolor="'.$bgcol.'" colspan="2"> <b><font size="+1" color="'.$textcol.'">'.$lt{'log'}.'</font></b></td>'; |
$logintitle = '<td bgcolor="'.$bgcol.'" colspan="2"> <b><font size="+1" color="'.$textcol.'">'.$lt{'log'}.'</font></b></td>'; |
Line 500 ENDNOOPT
|
Line 530 ENDNOOPT
|
$logintitle = '<td bgcolor="'.$sidebg.'" colspan="2"><img src="'.$login.'" alt="'. |
$logintitle = '<td bgcolor="'.$sidebg.'" colspan="2"><img src="'.$login.'" alt="'. |
&mt('User Authentication').'" /></td>'; |
&mt('User Authentication').'" /></td>'; |
} |
} |
|
my $noscript_warning='<td colspan="2" bgcolor="'.$mainbg.'">' |
|
.'<noscript><div class="LC_warning"><font size="-1">' |
|
.&mt('Use of LON-CAPA requires Javascript to be enabled in your web browser.') |
|
.'</font></div></noscript></td>'; |
$r->print(<<ENDLOGIN); |
$r->print(<<ENDLOGIN); |
<input type="hidden" name="lextkey" value="$lextkey"> |
<input type="hidden" name="lextkey" value="$lextkey"> |
<input type="hidden" name="uextkey" value="$uextkey"> |
<input type="hidden" name="uextkey" value="$uextkey"> |
Line 507 ENDNOOPT
|
Line 541 ENDNOOPT
|
<!-- Start the sub-table for text and input alignment --> |
<!-- Start the sub-table for text and input alignment --> |
<table border=0 cellspacing=0 cellpadding=0> |
<table border=0 cellspacing=0 cellpadding=0> |
<tr>$logintitle</tr> |
<tr>$logintitle</tr> |
|
<tr>$noscript_warning</tr> |
<tr> |
<tr> |
<td bgcolor="$mainbg"><br /><font size=-1><b> <label for="uname">$lt{'un'}</label>:</b></font></td> |
<td bgcolor="$mainbg"><br /><font size=-1><b> <label for="uname">$lt{'un'}</label>:</b></font></td> |
<td bgcolor="$mainbg"><br /><input type="text" name="uname" size="10" value="$authusername" /></td> |
<td bgcolor="$mainbg"><br /><input type="text" name="uname" size="10" value="$authusername" /></td> |
Line 577 ENDLOGIN
|
Line 612 ENDLOGIN
|
</td> |
</td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<td bgcolor="$sidebg" align="left" valign="top"><span class="LC_nobreak"> |
<small><b> $lt{'load'}: </b></small> |
<small><b> $lt{'load'}: </b></small></span> |
</td> |
</td> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<small><tt> $loadpercent $lt{'perc'}</tt></small> |
<small><tt> $loadpercent $lt{'perc'}</tt></small> |
</td> |
</td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<td bgcolor="$sidebg" align="left" valign="top"><span class="LC_nobreak"> |
<small><b> $lt{'userload'}: </b></small> |
<small><b> $lt{'userload'}: </b></small></span> |
</td> |
</td> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<td bgcolor="$sidebg" align="left" valign="top"> |
<small><tt> $userloadpercent $lt{'perc'}</tt></small> |
<small><tt> $userloadpercent $lt{'perc'}</tt></small> |