Return to lonhomework.pm CVS log | Up to [LON-CAPA] / loncom / homework |
version 1.363, 2016/07/18 19:29:11 | version 1.364, 2016/08/31 19:08:18 |
---|---|
Line 231 sub check_slot_access { | Line 231 sub check_slot_access { |
my ($returned_slot,$slot_name,$checkinslot,$ipused,$blockip,$now,$ip, | my ($returned_slot,$slot_name,$checkinslot,$ipused,$blockip,$now,$ip, |
$consumed_uniq); | $consumed_uniq); |
$now = time; | $now = time; |
$ip=$env{'request.host'} || $ENV{'REMOTE_ADDR'}; | $ip=$ENV{'REMOTE_ADDR'} || $env{'request.host'}; |
if ($checkedin) { | if ($checkedin) { |
$checkinslot = $Apache::lonhomework::history{"$checkin.slot"}; | $checkinslot = $Apache::lonhomework::history{"$checkin.slot"}; |