--- loncom/interface/loncreatecourse.pm 2003/02/07 02:02:57 1.17 +++ loncom/interface/loncreatecourse.pm 2003/06/16 13:51:46 1.24 @@ -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.24 2003/06/16 13:51:46 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -107,7 +107,7 @@ $helplink
Map: -Browse +Select Map
Do NOT generate as standard course (only check if you know what you are doing): @@ -140,6 +140,11 @@ $helplink Disable student resource discussion:
++Students need access key to enter course: + +
Username:
@@ -227,10 +232,23 @@ 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';
}
+
+ # Record we've not yet viewed the Course Initialization Helper for this course
+ $cenv{'course.helper.not.run'} = 1;
+ #
+ # 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 +302,11 @@ ENDENHEAD
$ccuname.' at '.$ccdomain.': '.
&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid,'cc').'
'); } - $r->print('Roles will be active at next login.