--- loncom/homework/grades.pm 2002/05/03 22:34:25 1.22 +++ loncom/homework/grades.pm 2002/05/08 18:59:37 1.23 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.22 2002/05/03 22:34:25 albertel Exp $ +# $Id: grades.pm,v 1.23 2002/05/08 18:59:37 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,14 +59,63 @@ sub moreinfo { return ''; } +sub verifyreceipt { + my $request=shift; + my $courseid=$ENV{'request.course.id'}; + my $chome=$ENV{"course.$courseid.home"}; + my $cdom=$ENV{"course.$courseid.domain"}; + my $cnum=$ENV{"course.$courseid.num"}; + my $receipt=unpack("%32C*",$Apache::lonnet::perlvar{'lonHostID'}).'-'. + $ENV{'form.receipt'}; + $receipt=~s/[^\-\d]//g; + my $symb=$ENV{'form.symb'}; + unless ($symb) { + $symb=&Apache::lonnet::symbread($ENV{'form.url'}); + } + if ((&Apache::lonnet::allowed('mgr',$courseid)) && ($symb)) { + $request->print('
'.$matches.' match(es)
'); + } + return ''; +} sub listStudents { my ($request) = shift; - my ($cdom,$cnum) = split(/_/,$ENV{'request.course.id'}); my $chome=$ENV{"course.$ENV{'request.course.id'}.home"}; - $request->print ('Username | Domain | Name |
---|