version 1.94, 2004/03/26 17:13:59
|
version 1.96, 2004/03/31 05:24:00
|
Line 101 use Apache::lontexconvert();
|
Line 101 use Apache::lontexconvert();
|
use HTML::Entities(); |
use HTML::Entities(); |
use Mail::Send; |
use Mail::Send; |
use Apache::lonlocal; |
use Apache::lonlocal; |
|
use Apache::loncommunicate; |
|
|
# Querystring component with sorting type |
# Querystring component with sorting type |
my $sqs; |
my $sqs; |
Line 109 my $sqs;
|
Line 110 my $sqs;
|
|
|
sub packagemsg { |
sub packagemsg { |
my ($subject,$message,$citation,$baseurl,$attachmenturl)=@_; |
my ($subject,$message,$citation,$baseurl,$attachmenturl)=@_; |
$message =&HTML::Entities::encode($message); |
$message =&HTML::Entities::encode($message,'<>&"'); |
$citation=&HTML::Entities::encode($citation); |
$citation=&HTML::Entities::encode($citation,'<>&"'); |
$subject =&HTML::Entities::encode($subject); |
$subject =&HTML::Entities::encode($subject,'<>&"'); |
#remove machine specification |
#remove machine specification |
$baseurl =~ s|^http://[^/]+/|/|; |
$baseurl =~ s|^http://[^/]+/|/|; |
$baseurl =&HTML::Entities::encode($baseurl); |
$baseurl =&HTML::Entities::encode($baseurl,'<>&"'); |
#remove machine specification |
#remove machine specification |
$attachmenturl =~ s|^http://[^/]+/|/|; |
$attachmenturl =~ s|^http://[^/]+/|/|; |
$attachmenturl =&HTML::Entities::encode($attachmenturl); |
$attachmenturl =&HTML::Entities::encode($attachmenturl,'<>&"'); |
|
|
my $now=time; |
my $now=time; |
$msgcount++; |
$msgcount++; |
Line 1249 sub handler {
|
Line 1250 sub handler {
|
$r->print($thismsg.'<br />'); |
$r->print($thismsg.'<br />'); |
$sendstatus.=' '.$thismsg; |
$sendstatus.=' '.$thismsg; |
} |
} |
|
} else { |
|
&printheader($r,'','No messages sent.'); |
} |
} |
if ($sendstatus=~/^(\s*(?:ok|con_delayed)\s*)*$/) { |
if ($sendstatus=~/^(\s*(?:ok|con_delayed)\s*)*$/) { |
$r->print('<br /><font color="green">'.&mt('Completed.').'</font>'); |
$r->print('<br /><font color="green">'.&mt('Completed.').'</font>'); |
if ($ENV{'form.displayedcrit'}) { |
if ($ENV{'form.displayedcrit'}) { |
&discrit($r); |
&discrit($r); |
} else { |
} else { |
&disall($r); |
&Apache::loncommunicate::menu($r); |
} |
} |
} else { |
} else { |
$r->print( |
$r->print( |