version 1.17, 2003/02/07 02:02:57
|
version 1.23, 2003/06/03 14:36:03
|
Line 140 $helplink
|
Line 140 $helplink
|
<b>Disable student resource discussion: </b> |
<b>Disable student resource discussion: </b> |
<input type="checkbox" name="disresdis" /> |
<input type="checkbox" name="disresdis" /> |
</p> |
</p> |
|
<h2>Access Control</h2> |
|
<p> |
|
<b>Students need access key to enter course: </b> |
|
<input type="checkbox" name="setkeys" /> |
|
</p> |
<h2>Course Coordinator</h2> |
<h2>Course Coordinator</h2> |
<p> |
<p> |
<b>Username:</b> <input type="text" size="15" name="ccuname" /> |
<b>Username:</b> <input type="text" size="15" name="ccuname" /> |
Line 227 ENDENHEAD
|
Line 232 ENDENHEAD
|
$cenv{'question.email'}=$ccuname.':'.$ccdomain; |
$cenv{'question.email'}=$ccuname.':'.$ccdomain; |
} |
} |
} |
} |
|
if ($ENV{'form.setkeys'}) { |
|
$envflag=1; |
|
$cenv{'keyaccess'}='yes'; |
|
} |
if ($ENV{'form.disresdis'}) { |
if ($ENV{'form.disresdis'}) { |
$envflag=1; |
$envflag=1; |
$cenv{'pch.roles.denied'}='st'; |
$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) { |
if ($envflag) { |
$r->print('Setting environment: '. |
$r->print('Setting environment: '. |
&Apache::lonnet::put('environment',\%cenv,$crsudom,$crsunum).'<br>'); |
&Apache::lonnet::put('environment',\%cenv,$crsudom,$crsunum).'<br>'); |
Line 284 ENDENHEAD
|
Line 302 ENDENHEAD
|
$ccuname.' at '.$ccdomain.': '. |
$ccuname.' at '.$ccdomain.': '. |
&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid,'cc').'<p>'); |
&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid,'cc').'<p>'); |
} |
} |
$r->print('Roles will be active at next login.</body></html>'); |
if ($ENV{'form.setkeys'}) { |
|
$r->print( |
|
'<p><a href="/adm/managekeys?cid='.$crsudom.'_'.$crsunum.'">Manage Access Keys</a></p>'); |
|
} |
|
$r->print('<p>Roles will be active at next login.</p></body></html>'); |
} |
} |
|
|
# ===================================================================== Handler |
# ===================================================================== Handler |