version 1.184, 2004/11/29 22:13:34
|
version 1.187, 2004/12/17 22:30:30
|
Line 385 sub setuppermissions {
|
Line 385 sub setuppermissions {
|
'/'.$ENV{'request.course.sec'}); |
'/'.$ENV{'request.course.sec'}); |
} |
} |
$Apache::lonhomework::viewgrades = $viewgrades; |
$Apache::lonhomework::viewgrades = $viewgrades; |
|
if ($Apache::lonhomework::browse eq 'F' && |
|
$ENV{'form.devalidatecourseresdata'} eq 'on') { |
|
my (undef,$courseid) = &Apache::lonxml::whichuser(); |
|
&Apache::lonnet::devalidatecourseresdata($ENV{"course.$courseid.num"}, |
|
$ENV{"course.$courseid.domain"}); |
|
} |
return '' |
return '' |
} |
} |
|
|
Line 714 sub newproblem {
|
Line 720 sub newproblem {
|
$errormsg='<p><font color="red">'.&mt('You did not select a template.').'</font></p>'."\n"; |
$errormsg='<p><font color="red">'.&mt('You did not select a template.').'</font></p>'."\n"; |
} |
} |
my $instructions; |
my $instructions; |
my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef,1); |
my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef, |
|
($ENV{'environment.remote'} ne 'off')); |
if ($templatelist) { $instructions=&mt(", select a template from the pull-down menu below.").'<br />'.&mt("Then");} |
if ($templatelist) { $instructions=&mt(", select a template from the pull-down menu below.").'<br />'.&mt("Then");} |
my %lt=&Apache::lonlocal::texthash( 'create' => 'Creating a new', |
my %lt=&Apache::lonlocal::texthash( 'create' => 'Creating a new', |
'resource' => 'resource', |
'resource' => 'resource', |
Line 767 sub handler {
|
Line 774 sub handler {
|
my $request=$_[0]; |
my $request=$_[0]; |
|
|
$Apache::lonxml::debug=$ENV{'user.debug'}; |
$Apache::lonxml::debug=$ENV{'user.debug'}; |
if (&setupheader($request)) { return OK; } |
|
$ENV{'request.uri'}=$request->uri; |
$ENV{'request.uri'}=$request->uri; |
&setuppermissions(); |
&setuppermissions(); |
&Apache::lonxml::debug("Permissions:$Apache::lonhomework::browse:$Apache::lonhomework::viewgrades:"); |
&Apache::lonxml::debug("Permissions:$Apache::lonhomework::browse:$Apache::lonhomework::viewgrades:"); |
Line 796 sub handler {
|
Line 802 sub handler {
|
$request->internal_redirect('/adm/ambiguous'); return; |
$request->internal_redirect('/adm/ambiguous'); return; |
} |
} |
} |
} |
|
if (&setupheader($request)) { return OK; } |
|
|
my ($symb) = &Apache::lonxml::whichuser(); |
my ($symb) = &Apache::lonxml::whichuser(); |
&Apache::lonxml::debug('symb is '.$symb); |
&Apache::lonxml::debug('symb is '.$symb); |