version 1.389, 2022/01/18 17:33:13
|
version 1.393, 2023/09/15 23:00:16
|
Line 1312 sub build_posting_display {
|
Line 1312 sub build_posting_display {
|
@{$$usernamesort{$contrib{$idx.':senderdomain'}}{$contrib{$idx.':sendername'}}} = ("$idx"); |
@{$$usernamesort{$contrib{$idx.':senderdomain'}}{$contrib{$idx.':sendername'}}} = ("$idx"); |
} |
} |
# Set up for sorting by last name, then first name |
# Set up for sorting by last name, then first name |
my %names = &Apache::lonnet::get('environment', |
my %names = &Apache::loncommon::getnames($contrib{$idx.':sendername'}, |
['firstname','lastname'],$contrib{$idx.':senderdomain'}, |
$contrib{$idx.':senderdomain'}); |
,$contrib{$idx.':sendername'}); |
|
my $lastname = $names{'lastname'}; |
my $lastname = $names{'lastname'}; |
my $firstname = $names{'firstname'}; |
my $firstname = $names{'firstname'}; |
if ($lastname eq '') { |
if ($lastname eq '') { |
Line 1694 sub get_post_contents {
|
Line 1693 sub get_post_contents {
|
$$contrib{$idx.':sendername'}, |
$$contrib{$idx.':sendername'}, |
$$contrib{$idx.':senderdomain'}); |
$$contrib{$idx.':senderdomain'}); |
$$screenname=$$contrib{$idx.':screenname'}; |
$$screenname=$$contrib{$idx.':screenname'}; |
$$showaboutme = &Apache::lonnet::usertools_access($$contrib{$idx.':sendername'}, |
$$showaboutme = &Apache::loncommon::aboutme_on($$contrib{$idx.':sendername'}, |
$$contrib{$idx.':senderdomain'}, |
$$contrib{$idx.':senderdomain'}); |
'aboutme'); |
|
my $sender = $$plainname; |
my $sender = $$plainname; |
if ($$showaboutme) { |
if ($$showaboutme) { |
$sender = &Apache::loncommon::aboutmewrapper( |
$sender = &Apache::loncommon::aboutmewrapper( |
Line 2763 sub fail_redirect {
|
Line 2761 sub fail_redirect {
|
my $logo=&Apache::loncommon::lonhttpdurl('/adm/lonIcons/lonlogos.gif'); |
my $logo=&Apache::loncommon::lonhttpdurl('/adm/lonIcons/lonlogos.gif'); |
my %parms=('only_body' => 1); |
my %parms=('only_body' => 1); |
if ($delay !~ /^\d+(|\.\d+)$/) { |
if ($delay !~ /^\d+(|\.\d+)$/) { |
$delay = 0; |
$delay = 2; |
} |
} |
if ($env{'form.modal'}) { |
if ($env{'form.modal'}) { |
my $onload = 'document.forms.reldt.submit()'; |
my $onload = 'document.forms.reldt.submit()'; |
Line 4736 ENDREDIR
|
Line 4734 ENDREDIR
|
if ($options) { |
if ($options) { |
&mail_screen($r,$feedurl,$options,$symb,$attachmax{'text'}); |
&mail_screen($r,$feedurl,$options,$symb,$attachmax{'text'}); |
} else { |
} else { |
&fail_redirect($r,$feedurl,1); |
&fail_redirect($r,$feedurl,2); |
} |
} |
return OK; |
return OK; |
} |
} |
Line 4755 ENDREDIR
|
Line 4753 ENDREDIR
|
my $usersymb = &Apache::lonenc::check_encrypt($symb); |
my $usersymb = &Apache::lonenc::check_encrypt($symb); |
my $useranswer= |
my $useranswer= |
&Apache::loncommon::get_student_answers( |
&Apache::loncommon::get_student_answers( |
$usersymb,$env{'user.name'},$env{'user.domain'}, |
$symb,$env{'user.name'},$env{'user.domain'}, |
$env{'request.course.id'}); |
$env{'request.course.id'}); |
&Apache::lonnet::delenv('allowed.vgr'); |
&Apache::lonnet::delenv('allowed.vgr'); |
# Get attachments, if any, and not too large |
# Get attachments, if any, and not too large |