version 1.11, 2011/11/13 01:07:09
|
version 1.15, 2012/10/29 17:38:55
|
Line 32 use strict;
|
Line 32 use strict;
|
use Apache::Constants qw(:common); |
use Apache::Constants qw(:common); |
use Apache::loncommon; |
use Apache::loncommon; |
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::loncacc; |
|
use Apache::lonlocal; |
use Apache::lonlocal; |
use LONCAPA(); |
use LONCAPA(); |
use HTML::Entities(); |
use HTML::Entities(); |
Line 49 sub handler {
|
Line 48 sub handler {
|
my ($ownername,$ownerdomain,$ownerhome); |
my ($ownername,$ownerdomain,$ownerhome); |
if ($env{'request.editurl'} ne '') { |
if ($env{'request.editurl'} ne '') { |
($ownername,$ownerdomain,$ownerhome) = |
($ownername,$ownerdomain,$ownerhome) = |
&Apache::loncacc::constructaccess($env{'request.editurl'}); |
&Apache::lonnet::constructaccess($env{'request.editurl'}); |
} |
} |
|
|
# Breadcrumbs |
# Breadcrumbs |
Line 57 sub handler {
|
Line 56 sub handler {
|
if ($env{'request.role'} =~ /^(au|ca|aa)/) { |
if ($env{'request.role'} =~ /^(au|ca|aa)/) { |
&Apache::lonhtmlcommon::add_breadcrumb({ |
&Apache::lonhtmlcommon::add_breadcrumb({ |
'text' => 'Construction Space', |
'text' => 'Construction Space', |
'href' => &Apache::loncommon::authorspace(), |
'href' => &Apache::loncommon::authorspace($env{'request.editurl'}), |
}); |
}); |
} elsif (($env{'request.course.id'}) && |
} elsif (($env{'request.course.id'}) && |
(&Apache::lonnet::allowed('mdc',$env{'request.course.id'}))) { |
(&Apache::lonnet::allowed('mdc',$env{'request.course.id'}))) { |
Line 122 sub handler {
|
Line 121 sub handler {
|
$option = 'decompress'; |
$option = 'decompress'; |
} elsif ($name eq 'qualifiedfilename') { |
} elsif ($name eq 'qualifiedfilename') { |
$qualifiedfilename = $value; |
$qualifiedfilename = $value; |
} elsif ($name = 'versionone') { |
} elsif ($name eq 'versionone') { |
if ($value eq 'priv') { |
if ($value eq 'priv') { |
$option = 'cstr'; |
$option = 'cstr'; |
} |
} |
Line 155 sub handler {
|
Line 154 sub handler {
|
if ($warning) { |
if ($warning) { |
if (($action eq 'diff') && ($option ne 'cstr')) { |
if (($action eq 'diff') && ($option ne 'cstr')) { |
$r->print('<p class="LC_error">'. |
$r->print('<p class="LC_error">'. |
$deniedactions{$action}.'</p><p class="LC_warning">' |
$deniedactions{$action}.'</p><p class="LC_warning">'. |
&mt('You do not have privileges to view the published resource').' '. |
&mt('You do not have privileges to view the published resource').' '. |
'<span class="LC_filename">'.$filename.'</span>'. |
'<span class="LC_filename">'.$filename.'</span>'. |
'</p>'); |
'</p>'); |