--- loncom/lonnet/perl/lonnet.pm 2003/04/03 22:25:49 1.360 +++ loncom/lonnet/perl/lonnet.pm 2003/04/12 15:58:43 1.361 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.360 2003/04/03 22:25:49 albertel Exp $ +# $Id: lonnet.pm,v 1.361 2003/04/12 15:58:43 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -634,7 +634,7 @@ sub generate_access_keys { $ENV{'course.'.$ENV{'request.course.id'}.'.domain'} unless (defined($cdom)); $cnum= $ENV{'course.'.$ENV{'request.course.id'}.'.num'} unless (defined($cnum)); - unless (&allowed('ccc',$cdom)) { return 0; } + unless (&allowed('mky',$cdom)) { return 0; } unless (($cdom) && ($cnum)) { return 0; } if ($number>10000) { return 0; } sleep(2); # make sure don't get same seed twice @@ -1149,6 +1149,14 @@ sub countacc { } } +sub linklog { + my ($from,$to)=@_; + $from=&declutter($from); + $to=&declutter($to); + $accesshash{$from.'___'.$to.'___comefrom'}=1; + $accesshash{$to.'___'.$from.'___goto'}=1; +} + sub userrolelog { my ($trole,$username,$domain,$area,$tstart,$tend)=@_; if (($trole=~/^ca/) || ($trole=~/^in/) ||