--- loncom/interface/loncreatecourse.pm 2003/02/07 02:02:57 1.17 +++ loncom/interface/loncreatecourse.pm 2003/05/04 07:38:32 1.22 @@ -1,7 +1,7 @@ # The LearningOnline Network # Create a course # -# $Id: loncreatecourse.pm,v 1.17 2003/02/07 02:02:57 www Exp $ +# $Id: loncreatecourse.pm,v 1.22 2003/05/04 07:38:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -140,6 +140,11 @@ $helplink Disable student resource discussion:
++Students need access key to enter course: + +
Username:
@@ -227,10 +232,20 @@ ENDENHEAD
$cenv{'question.email'}=$ccuname.':'.$ccdomain;
}
}
+ if ($ENV{'form.setkeys'}) {
+ $envflag=1;
+ $cenv{'keyaccess'}='yes';
+ }
if ($ENV{'form.disresdis'}) {
$envflag=1;
$cenv{'pch.roles.denied'}='st';
}
+ #
+ # Use new Randomseed
+ #
+ $envflag=1;
+ $cenv{'rndseed'}=&Apache::lonnet::latest_rnd_algorithm_id();;
+
if ($envflag) {
$r->print('Setting environment: '.
&Apache::lonnet::put('environment',\%cenv,$crsudom,$crsunum).'
');
@@ -284,7 +299,11 @@ ENDENHEAD
$ccuname.' at '.$ccdomain.': '.
&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid,'cc').'
'); } - $r->print('Roles will be active at next login.