version 1.35, 2003/01/31 21:46:36
|
version 1.37, 2003/02/13 16:31:54
|
Line 30
|
Line 30
|
# 1/14,2/24,2/28,2/29,3/7,5/29,5/30,5/31,6/1,6/5,6/29, |
# 1/14,2/24,2/28,2/29,3/7,5/29,5/30,5/31,6/1,6/5,6/29, |
# 7/1,7/10,10/2,10/5,10/9,10/26,10/30,11/10, |
# 7/1,7/10,10/2,10/5,10/9,10/26,10/30,11/10, |
# 05/28,05/29 Gerd Kortemeyer |
# 05/28,05/29 Gerd Kortemeyer |
# 07/24 Scott Harrison |
|
# 07/28,08/03 Gerd Kortemeyer |
# 07/28,08/03 Gerd Kortemeyer |
# 8/15 Scott Harrison |
|
# 8/20 Gerd Kortemeyer |
# 8/20 Gerd Kortemeyer |
|
|
package Apache::lonauth; |
package Apache::lonauth; |
Line 47 use Crypt::DES;
|
Line 45 use Crypt::DES;
|
use Apache::lonnet(); |
use Apache::lonnet(); |
use Apache::lonmenu(); |
use Apache::lonmenu(); |
use Fcntl qw(:flock); |
use Fcntl qw(:flock); |
|
|
|
my %FORM; |
|
|
# ------------------------------------------------------------ Successful login |
# ------------------------------------------------------------ Successful login |
|
|
sub success { |
sub success { |
Line 140 sub success {
|
Line 141 sub success {
|
print $idf "request.course.uri=\n"; |
print $idf "request.course.uri=\n"; |
print $idf "request.course.sec=\n"; |
print $idf "request.course.sec=\n"; |
print $idf "request.role=cm\n"; |
print $idf "request.role=cm\n"; |
print $idf "request.host=$ENV{'HTTP_HOST'}\n"; |
print $idf "request.host=$ENV{'HTTP_HOST'}\n"; |
|
if ($FORM{'interface'}) { |
|
$FORM{'interface'}=~s/\W//gs; |
|
print $idf "browser.interface=$FORM{'interface'}\n"; |
|
$ENV{'browser.interface'}=$FORM{'interface'}; |
|
} |
if ($userroles ne '') { print $idf "$userroles"; } |
if ($userroles ne '') { print $idf "$userroles"; } |
$idf->close(); |
$idf->close(); |
} |
} |
Line 225 sub handler {
|
Line 231 sub handler {
|
my $buffer; |
my $buffer; |
$r->read($buffer,$r->header_in('Content-length')); |
$r->read($buffer,$r->header_in('Content-length')); |
my @pairs=split(/&/,$buffer); |
my @pairs=split(/&/,$buffer); |
my $pair; my $name; my $value; my %FORM; |
my $pair; my $name; my $value; |
|
undef %FORM; |
|
%FORM=(); |
foreach $pair (@pairs) { |
foreach $pair (@pairs) { |
($name,$value) = split(/=/,$pair); |
($name,$value) = split(/=/,$pair); |
$value =~ tr/+/ /; |
$value =~ tr/+/ /; |