KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/afglcweb/oldwebsite2/OLDWEBSITE/membership/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/afglcweb/oldwebsite2/OLDWEBSITE/membership/test.pl
#!/usr/bin/perl

# Configuration ########################################
my $config = {

        # Location of template files
        templates => '/ubalis/cgi-bin/templates'

        # Default from address, if none provided
        from      => '[email protected]',
};
#########################################################

use CGI_Lite;
use Mail::Sendmail;
use Text::Template;
use strict;

my ($cgi, $form, $fill_in, $message, $template,
        %mail,
        );

$cgi = new CGI_Lite;
$form = $cgi->parse_form_data;
exit(0) if $form->{template}=~/\.\./;
foreach (keys %$form)   {
        $form->{$_} = join ', ', @{$form->{$_}} if ref $form->{$_};
}

$fill_in = new Text::Template ( TYPE => 'FILE',
                SOURCE => $config->{templates} . "/" . $form->{template} . ".email");
$message = $fill_in->fill_in( HASH => [ $form ],
                        DELIMITERS => [ '<%', '%>' ]
                        );

$form->{email} ||= $config->{from};

%mail = ( To      => '[email protected]'#$form->{to},
                  From    => '[email protected]'#$form->{email},
                  Subject => 'test'#$form->{subject},
                  Message => $message,
                );
sendmail(%mail);

print "Location: $form->{redirect}\n\n";



Anon7 - 2021