version 1.6, 2003/12/11 15:45:25
|
version 1.8, 2004/03/18 19:40:39
|
Line 72
|
Line 72
|
$enrollvar{$crs}{$item} = &HTML::Entities::decode($settings{$item}); |
$enrollvar{$crs}{$item} = &HTML::Entities::decode($settings{$item}); |
} |
} |
} |
} |
if (($enrollvar{$crs}{autostart} <= $timenow) && ($enrollvar{$crs}{autoend} > $timenow)) { |
if (($enrollvar{$crs}{autostart} <= $timenow) && ( ($enrollvar{$crs}{autoend} > $timenow) || ($enrollvar{$crs}{autoend} == 0) ) ) { |
if ( ($enrollvar{$crs}{autoadds} == 1) || ($enrollvar{$crs}{autodrops} == 1) ) { |
if ( ($enrollvar{$crs}{autoadds} == 1) || ($enrollvar{$crs}{autodrops} == 1) ) { |
# Add to list of classes for retrieval |
# Add to list of classes for retrieval |
$enrollvar{$crs}{sectionnums} =~ s/ //g; |
$enrollvar{$crs}{sectionnums} =~ s/ //g; |
Line 121
|
Line 121
|
my $logmsg = ''; |
my $logmsg = ''; |
my $newusermsg = ''; |
my $newusermsg = ''; |
if ($reply{$crs} > 0) { |
if ($reply{$crs} > 0) { |
if (($enrollvar{$crs}{autostart} < $timenow) && ($enrollvar{$crs}{autoend} > $timenow)) { |
if ( ($enrollvar{$crs}{autostart} < $timenow) && ( ($enrollvar{$crs}{autoend} > $timenow) || ($enrollvar{$crs}{autoend} == 0) ) ) { |
if (($enrollvar{$crs}{autoadds} == 1) || ($enrollvar{$crs}{autodrops} == 1)) { |
if (($enrollvar{$crs}{autoadds} == 1) || ($enrollvar{$crs}{autodrops} == 1)) { |
my ($changecount,$response) = &LONCAPA::Enrollment::update_LC($dom,$crs,$enrollvar{$crs}{autoadds},$enrollvar{$crs}{autodrops},$enrollvar{$crs}{startdate},$enrollvar{$crs}{enddate},$enrollvar{$crs}{authtype},$enrollvar{$crs}{autharg},\@{$affiliates{$crs}},\%{$LC_code{$crs}},\$logmsg,\$newusermsg,'automated'); |
my ($changecount,$response) = &LONCAPA::Enrollment::update_LC($dom,$crs,$enrollvar{$crs}{autoadds},$enrollvar{$crs}{autodrops},$enrollvar{$crs}{startdate},$enrollvar{$crs}{enddate},$enrollvar{$crs}{authtype},$enrollvar{$crs}{autharg},\@{$affiliates{$crs}},\%{$LC_code{$crs}},\$logmsg,\$newusermsg,'automated'); |
print $fh "Messages start for $crs\n"; |
print $fh "Messages start for $crs\n"; |
Line 163
|
Line 163
|
} |
} |
} |
} |
} else { |
} else { |
print $fh "No institutional classlist data could be retrieved for $crs\n"; |
if ( ($enrollvar{$crs}{autoadds} == 1) || ($enrollvar{$crs}{autodrops} == 1) ) { |
|
if ( ($enrollvar{$crs}{autostart} < $timenow) && ( ($enrollvar{$crs}{autoend} > $timenow) || ($enrollvar{$crs}{autoend} == 0) ) ) { |
|
print $fh "No institutional classlist data could be retrieved for $crs\n"; |
|
} else { |
|
print $fh "Not within time window for auto-enrollment in $crs\n"; |
|
} |
|
} else { |
|
print $fh "Auto-enrollment not currently enabled for $crs\n"; |
|
} |
} |
} |
} |
} |
print $fh "-- ".localtime(time)." Enrollment messages end\n*******************\n\n"; |
print $fh "-- ".localtime(time)." Enrollment messages end\n*******************\n\n"; |