version 1.17, 2002/05/25 21:46:15
|
version 1.20, 2002/08/26 12:47:28
|
Line 30
|
Line 30
|
# 1/17/01 Gerd Kortemeyer |
# 1/17/01 Gerd Kortemeyer |
# |
# |
# 2/7/02,2/8,2/12,2/14,2/15,2/19 Josh Brunskole |
# 2/7/02,2/8,2/12,2/14,2/15,2/19 Josh Brunskole |
|
# |
|
# 7/10/02 Jeremy Bowers |
|
|
package Apache::lonlogin; |
package Apache::lonlogin; |
|
|
Line 50 sub handler {
|
Line 52 sub handler {
|
&Apache::loncommon::get_unprocessed_cgi |
&Apache::loncommon::get_unprocessed_cgi |
($ENV{'QUERY_STRING'},['interface']); |
($ENV{'QUERY_STRING'},['interface']); |
|
|
|
$ENV{'form.interface'}=~s/\W//g; |
|
|
my $fullgraph=($ENV{'form.interface'} ne 'textual'); |
my $fullgraph=($ENV{'form.interface'} ne 'textual'); |
|
|
my $iconpath= $r->dir_config('lonIconsURL'); |
my $iconpath= $r->dir_config('lonIconsURL'); |
Line 100 sub handler {
|
Line 104 sub handler {
|
my $logtoken=Apache::lonnet::reply( |
my $logtoken=Apache::lonnet::reply( |
'tmpput:'.$ukey.$lkey.'&'.$firsturl, |
'tmpput:'.$ukey.$lkey.'&'.$firsturl, |
$lonhost); |
$lonhost); |
|
my $domainlogo=&Apache::loncommon::domainlogo(); |
# --------------------------------------------------- Print login screen header |
# --------------------------------------------------- Print login screen header |
$r->print(<<ENDHEADER); |
$r->print(<<ENDHEADER); |
<html> |
<html> |
Line 136 ENDHEADER
|
Line 140 ENDHEADER
|
=crypted(this.document.client.elements.upass.value); |
=crypted(this.document.client.elements.upass.value); |
|
|
this.document.server.submit(); |
this.document.server.submit(); |
|
return false; |
} |
} |
</script> |
</script> |
ENDSCRIPT |
ENDSCRIPT |
Line 160 ENDSERVERFORM
|
Line 165 ENDSERVERFORM
|
<tr> |
<tr> |
|
|
<!-- Row 1 Columns 2-4 --> |
<!-- Row 1 Columns 2-4 --> |
<td width="100%" height=75 colspan=4 align="left" valign="top" bgcolor="#006600"><img src="$iconpath/header.gif" border=0 /></td> |
<td width="100%" height=75 colspan=4 align="left" valign="top" bgcolor="#006600"><img src="$iconpath/header.gif" border=0 alt="The Learning Online Network with CAPA" /></td> |
</tr> |
</tr> |
|
|
<!-- The gray bar that starts the two table frames --> |
<!-- The gray bar that starts the two table frames --> |
Line 170 ENDSERVERFORM
|
Line 175 ENDSERVERFORM
|
<td width=182 height=27 bgcolor="#cccccc"> </td> |
<td width=182 height=27 bgcolor="#cccccc"> </td> |
|
|
<!-- Row 2 Column 2 --> |
<!-- Row 2 Column 2 --> |
<td width=27 height=27 align="left" background="$iconpath/filltop.gif"><img src="$iconpath/upperleft.gif" border=0 /></td> |
<td width=27 height=27 align="left" background="$iconpath/filltop.gif"><img src="$iconpath/upperleft.gif" border=0 alt="" /></td> |
|
|
<!-- Row 2 Column 3 --> |
<!-- Row 2 Column 3 --> |
<td height=27 background="$iconpath/filltop.gif"><img src="$iconpath/filltop.gif" /></td> |
<td height=27 background="$iconpath/filltop.gif"><img src="$iconpath/filltop.gif" alt="" /></td> |
|
|
<!-- Row 2 Column 4 --> |
<!-- Row 2 Column 4 --> |
<td width=27 height=27 align="right" background="$iconpath/filltop.gif"><img src="$iconpath/upperright.gif" border=0 /></td> |
<td width=27 height=27 align="right" background="$iconpath/filltop.gif"><img src="$iconpath/upperright.gif" border=0 alt="" /></td> |
</tr> |
</tr> |
<tr> |
<tr> |
|
|
<!-- A cell that will hold the 'access' and 'about' buttons --> |
<!-- A cell that will hold the 'access' and 'about' buttons --> |
<!-- Row 3 Column 1 --> |
<!-- Row 3 Column 1 --> |
<td valign="top" height=60 align="center" bgcolor="#cccccc"> |
<td valign="top" height=60 align="center" bgcolor="#cccccc"> |
<a href="/adm/login?interface=textual"><img src="$iconpath/accessbutton.gif" border=0 /></a> |
<a href="/adm/login?interface=textual"><img src="$iconpath/accessbutton.gif" border=0 alt="Accessibility Options" /></a> |
<br /> |
<br /> |
<a href="/adm/about.html"><img src="$iconpath/aboutlon.gif" border=0 /></a> |
<a href="/adm/about.html"><img src="$iconpath/aboutlon.gif" border=0 alt="About LON-CAPA" /></a> |
</td> |
</td> |
|
|
<!-- The shaded space between the two main columns --> |
<!-- The shaded space between the two main columns --> |
<!-- Row 3 Column 2 --> |
<!-- Row 3 Column 2 --> |
<td width=27 height=60 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" /></td> |
<td width=27 height=60 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td> |
|
|
<!-- 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%" rowspan=2 bgcolor="#ffffff"> |
<td align="center" valign="top" width="100%" height="100%" rowspan=2 bgcolor="#ffffff"> |
<center> |
<center> |
<img src="$iconpath/loncapalogo.gif" /> |
<img src="$iconpath/loncapalogo.gif" alt="" /> |
</center> |
</center> |
</td> |
</td> |
|
|
<!-- Row 3 Column 4 --> |
<!-- Row 3 Column 4 --> |
<td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" /></td> |
<td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td> |
</tr> |
</tr> |
<tr> |
<tr> |
|
|
Line 211 ENDSERVERFORM
|
Line 216 ENDSERVERFORM
|
ENDTOP |
ENDTOP |
} |
} |
$r->print(<<ENDLOGIN); |
$r->print(<<ENDLOGIN); |
<form name="client"> |
<form name="client" onsubmit="return(send())"> |
<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"> |
|
|
<!-- 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><td bgcolor="#cccccc" colspan=2><img src="$iconpath/userauthentication.gif" /></td></tr> |
<tr><td bgcolor="#cccccc" colspan=2><img src="$iconpath/userauthentication.gif" alt="User Authentication" /></td></tr> |
<tr> |
<tr> |
<td bgcolor="#ffffff"><br /><font size=-1><b> User Name:</b></font></td> |
<td bgcolor="#ffffff"><br /><font size=-1><b> User Name:</b></font></td> |
<td bgcolor="#ffffff"><br /><input type="text" name="uname" size="10" /></td> |
<td bgcolor="#ffffff"><br /><input type="text" name="uname" size="10" /></td> |
Line 233 ENDTOP
|
Line 238 ENDTOP
|
<tr> |
<tr> |
<td bgcolor="#ffffff" valign="bottom" align="center" colspan=2> |
<td bgcolor="#ffffff" valign="bottom" align="center" colspan=2> |
<br /> |
<br /> |
<input type="button" value="Log In" onClick="send();" /> |
<input type="submit" value="Log In" /> |
</td> |
</td> |
</tr> |
</tr> |
</table> |
</table> |
Line 245 ENDLOGIN
|
Line 250 ENDLOGIN
|
</td> |
</td> |
|
|
<!-- Row 4 Column 2 --> |
<!-- Row 4 Column 2 --> |
<td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" /></td> |
<td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td> |
|
|
<!-- Row 4 Column 4 --> |
<!-- Row 4 Column 4 --> |
<td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" /></td> |
<td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td> |
</tr> |
</tr> |
<tr> |
<tr> |
|
|
Line 286 ENDLOGIN
|
Line 291 ENDLOGIN
|
<b> System Administration:</b><br /> |
<b> System Administration:</b><br /> |
<tt> $sysadm</tt><br /> |
<tt> $sysadm</tt><br /> |
<b> Server Administration:</b><br /> |
<b> Server Administration:</b><br /> |
<tt> $servadm</tt> |
<tt> $servadm<br /> </tt> |
</small> |
</small> |
</td> |
</td> |
|
|
<!-- Row 5 Column 2 --> |
<!-- Row 5 Column 2 --> |
<td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" /></td> |
<td width=27 background="$iconpath/fillleft.gif"><img src="$iconpath/fillleft.gif" alt="" /></td> |
|
|
<!-- Row 5 Column 3 --> |
<!-- Row 5 Column 3 --> |
<td width="100%" valign="bottom" bgcolor="#ffffff"><img src="$iconpath/litetext.gif" /><img src="$iconpath/lite.gif" /></td> |
<td width="100%" valign="bottom" bgcolor="#ffffff"> |
|
$domainlogo |
|
</td> |
|
|
<!-- Row 5 Column 4 --> |
<!-- Row 5 Column 4 --> |
<td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" /></td> |
<td width=27 background="$iconpath/fillright.gif"><img src="$iconpath/fillright.gif" alt="" /></td> |
</tr> |
</tr> |
<tr> |
<tr> |
|
|
Line 305 ENDLOGIN
|
Line 312 ENDLOGIN
|
<td bgcolor="#cccccc"> </td> |
<td bgcolor="#cccccc"> </td> |
|
|
<!-- Row 6 Column 2 --> |
<!-- Row 6 Column 2 --> |
<td align="left" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerleft.gif" /></td> |
<td align="left" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerleft.gif" alt="" /></td> |
|
|
<!-- Row 6 Column 3 --> |
<!-- Row 6 Column 3 --> |
<td background="$iconpath/fillbottom.gif"><img src="$iconpath/fillbottom.gif" /></td> |
<td background="$iconpath/fillbottom.gif"><img src="$iconpath/fillbottom.gif" alt="" /></td> |
|
|
<!-- Row 6 Column 4 --> |
<!-- Row 6 Column 4 --> |
<td align="right" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerright.gif" /></td> |
<td align="right" background="$iconpath/fillbottom.gif"><img src="$iconpath/lowerright.gif" alt="" /></td> |
</tr> |
</tr> |
</table> |
</table> |
|
|