version 1.159, 2020/12/18 15:23:02
|
version 1.164, 2022/11/14 18:50:42
|
Line 84 use Apache::lonlocal;
|
Line 84 use Apache::lonlocal;
|
use Apache::lonmsgdisplay(); |
use Apache::lonmsgdisplay(); |
use Apache::lontemplate; |
use Apache::lontemplate; |
use Apache::longroup; |
use Apache::longroup; |
|
use Apache::lonhtmlcommon(); |
use HTML::Entities(); |
use HTML::Entities(); |
use Image::Magick; |
use Image::Magick; |
|
|
Line 108 sub handler {
|
Line 109 sub handler {
|
$is_course = &Apache::lonnet::is_course($cdom,$cnum); |
$is_course = &Apache::lonnet::is_course($cdom,$cnum); |
} |
} |
|
|
|
my $clientip = &Apache::lonnet::get_requestor_ip($r); |
my $candisplay = 1; |
my $candisplay = 1; |
if (!$is_course) { |
if (!$is_course) { |
if ($action ne 'portfolio') { |
if ($action ne 'portfolio') { |
Line 153 sub handler {
|
Line 155 sub handler {
|
'</ul>'); |
'</ul>'); |
} else { |
} else { |
my ($blocked,$blocktext) = |
my ($blocked,$blocktext) = |
&Apache::loncommon::blocking_status('port',$cnum,$cdom); |
&Apache::loncommon::blocking_status('port',$clientip,$cnum,$cdom); |
if (!$blocked) { |
if (!$blocked) { |
&display_portfolio_files($r,$is_course); |
&display_portfolio_files($r,$is_course); |
} else { |
} else { |
Line 221 sub handler {
|
Line 223 sub handler {
|
$args->{'no_nav_bar'} = 1; |
$args->{'no_nav_bar'} = 1; |
} elsif (!$env{'form.register'}) { #Don't show breadcrumbs twice, when this page is part of course content and you call it |
} elsif (!$env{'form.register'}) { #Don't show breadcrumbs twice, when this page is part of course content and you call it |
if (($env{'request.course.id'}) && |
if (($env{'request.course.id'}) && |
($env{'form.folderpath'} =~ /^supplemental/)) { |
($env{'form.folderpath'} =~ /^supplemental/)) { |
|
&Apache::loncommon::validate_folderpath(1,'',$coursenum,$coursedomain); |
my $crstype = &Apache::loncommon::course_type(); |
my $crstype = &Apache::loncommon::course_type(); |
my $title = $env{'form.title'}; |
my $title = $env{'form.title'}; |
if ($title eq '') { |
if ($title eq '') { |
$title = &mt('Personal Information Page'); |
$title = &mt('Personal Information Page'); |
} |
} |
|
$title = &HTML::Entities::encode($title,'\'"<>&'); |
my $brcrum = |
my $brcrum = |
&Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); |
&Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); |
if (ref($brcrum) eq 'ARRAY') { |
if (ref($brcrum) eq 'ARRAY') { |
Line 240 sub handler {
|
Line 244 sub handler {
|
my $start_page = &Apache::loncommon::start_page('Personal Information Page',$rss_link,$args); |
my $start_page = &Apache::loncommon::start_page('Personal Information Page',$rss_link,$args); |
$r->print($start_page); |
$r->print($start_page); |
} |
} |
|
my ($blocked,$blocktext) = |
|
&Apache::loncommon::blocking_status('about',$clientip,$cnum,$cdom); |
|
if ($blocked) { |
|
if ($target eq 'tex') { |
|
$r->print('\noindent{\large\textbf{'.&mt('No user personal information page available').'}}\\\\\\\\'); |
|
} else { |
|
$r->print($blocktext); |
|
} |
|
$r->print(&Apache::loncommon::end_page()); |
|
return OK; |
|
} |
|
|
#----------------Print Privacy note (edit mode) or last modified date. |
#----------------Print Privacy note (edit mode) or last modified date. |
|
|
Line 793 sub parse_directory {
|
Line 808 sub parse_directory {
|
sub aboutme_access { |
sub aboutme_access { |
my ($uname,$udom) = @_; |
my ($uname,$udom) = @_; |
my $privcheck = $env{'request.course.id'}; |
my $privcheck = $env{'request.course.id'}; |
my $sec; |
|
if ($env{'request.course.sec'} ne '') { |
if ($env{'request.course.sec'} ne '') { |
$sec = $env{'request.course.sec'}; |
$privcheck .= '/'.$env{'request.course.sec'}; |
$privcheck .= '/'.$sec; |
|
} |
} |
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |