version 1.45, 2003/03/10 20:21:45
|
version 1.52, 2003/06/06 02:24:49
|
Line 106 sub success {
|
Line 106 sub success {
|
if (($userenv{'interface'}) && (!$FORM{'interface'})) { |
if (($userenv{'interface'}) && (!$FORM{'interface'})) { |
$FORM{'interface'}=$userenv{'interface'}; |
$FORM{'interface'}=$userenv{'interface'}; |
} |
} |
|
$ENV{'environment.remote'}=$userenv{'remote'}; |
# --------------------------------------------------------- Write first profile |
# --------------------------------------------------------- Write first profile |
|
|
{ |
{ |
Line 129 sub success {
|
Line 130 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.role.adv=$ENV{'user.adv'}\n"; |
print $idf "request.host=$ENV{'REMOTE_ADDR'}\n"; |
print $idf "request.host=$ENV{'REMOTE_ADDR'}\n"; |
if ($FORM{'interface'}) { |
if ($FORM{'interface'}) { |
$FORM{'interface'}=~s/\W//gs; |
$FORM{'interface'}=~s/\W//gs; |
Line 146 sub success {
|
Line 148 sub success {
|
$idf->close(); |
$idf->close(); |
} |
} |
$ENV{'request.role'}='cm'; |
$ENV{'request.role'}='cm'; |
|
$ENV{'request.role.adv'}=$ENV{'user.adv'}; |
$ENV{'browser.type'}=$clientbrowser; |
$ENV{'browser.type'}=$clientbrowser; |
# -------------------------------------------------------------------- Log this |
# -------------------------------------------------------------------- Log this |
|
|
Line 215 ENDFHEADER
|
Line 218 ENDFHEADER
|
$bodytag |
$bodytag |
<h1>Sorry ...</h1> |
<h1>Sorry ...</h1> |
<p><b>$message</b></p> |
<p><b>$message</b></p> |
<p>Please <a href="/adm/login?username=$FORM{'uname'}&domain=$FORM{'udom'}">login</a> again.</p> |
<p>Please <a href="/adm/login?username=$FORM{'uname'}&domain=$FORM{'udom'}">log in again</a>.</p> |
<p> |
<p> |
<a href="/adm/loginproblems.html">Problems?</a></p> |
<a href="/adm/loginproblems.html">Problems?</a></p> |
</body> |
</body> |
Line 229 sub handler {
|
Line 232 sub handler {
|
my $r = shift; |
my $r = shift; |
|
|
my $buffer; |
my $buffer; |
$r->read($buffer,$r->header_in('Content-length')); |
$r->read($buffer,$r->header_in('Content-length'),0); |
my @pairs=split(/&/,$buffer); |
my @pairs=split(/&/,$buffer); |
my $pair; my $name; my $value; |
my $pair; my $name; my $value; |
undef %FORM; |
undef %FORM; |