#!/usr/bin/perl
#######################################################################
# #
# Free Perl Mailer written 2003 by #
# #
# Tri Dung Nguyen #
# www.vitinh.de #
# #
# Version 1.01 - 03.Oct.03 #
# Copyright (C) 2002-2003 #
# #
# This program is absolutely free, for private and for #
# commercial sites. #
# #
# You may not sell this script. You may offer it freely to #
# others. You may not alter the code and then call it another #
# name. You may not alter the code and then resell it under #
# another name, either. #
# #
# All copyright notices and the download links at the bottom of #
# the form-page (when the pages are viewed on the internet) must #
# remain intact! #
# #
# This program is provided in the hope that it will be useful, #
# but without warranty. You must decide between two things: #
# using or not using it! #
# #
# For help, take a look at the support page at: #
# #
# www.vitinh.de #
# #
#######################################################################
#######################################################################
# #
# You may change the first line of this page if the path to #
# PERL on your server is not "/usr/bin/perl". Contact your admin #
# or take a look at the HELP, or FAQ page of the provider to get #
# this. #
# #
#######################################################################
#######################################################################
# #
# NO CHANGES UNDER THIS LINE REQUIRED #
# Changing of program codes may cause the fatal errors! #
# #
# UNTERHALB DIESER NACHRICHT NICHTS AENDERN #
# Es koennte zur Fehlfunktion des Gaestebuches fuehren! #
# #
# KHONG THAY DOI GI DUOI DONG CHU NAY #
# Thay doi trong ma nguon co the lam hong chuong trinh! #
# #
# NE PAS CHANGER LE TEXTE APRÈS CE MESSAGE! #
# #
#######################################################################
####################### BEGIN OF PROGRAM CODE #########################
use CGI::Carp qw(fatalsToBrowser);
use CGI;
use CGI qw(:standard);
use Time::Local;
use strict;
my ($smtp, $SEND_MAIL);
$SEND_MAIL="/usr/lib/sendmail -t"; #(comment if server OS is Windows)
#use Net::SMTP; # (UNcomment if server OS is Windows)
#$smtp = Net::SMTP->new("localhost"); # (UNcomment if server OS is Windows)
my $version = "1.01";
my $online = 1;
my $demo = 0;
my $cgi = new CGI;
my $conttype = "Content-type: text/html\n\n";
my $dir = "fpm_files";
my $inputs = "$dir/inputs.fpm";
my $config = "$dir/config.fpm";
my $style = "$dir/style.fpm";
my $language = "$dir/language.fpm";
my $data = "$dir/data.fpm";
my $mailing_list = "$dir/mailing_list.fpm";
my $skin = "$dir/skin.fpm";
my $default_password = "tridung";
my $passfile = "$dir/password.fpm";
my $version_info = "$dir/version_info.fpm";
my $crypted_password = crypt($default_password, "td");
########### Global varialbles ##########################################
my (@fields, %fpmlang, %fpmskin, %fpmconfig, $css, @active_fields, %active_field_captions, @required_fields, @empty_required_fields, $random_num, $demo_msg, $demo_msg_2);
my $fpm_subject = "FPM: New message received";
my $update_service = "http://www.vitinh.de/cgi-bin/fpm/fpm_update_service.cgi";
my $writing_script = "http://www.vitinh.de/scripts/vietuni.js";
if($online == 0){
$update_service = "fpm_update_service.cgi";
$writing_script = "file://D:/Website/VT/script/vietuni.js";
}
my $ip = $ENV{'REMOTE_ADDR'};
if($demo == 1){
$demo_msg = qq(
This is a demo version! You cannot change anything on this page!);
$demo_msg_2 = qq(This is a demo version! You cannot change anything on this page!
|
~;
if(($fpmconfig{'SHOW_LOGIN'} eq "yes") or ($fpmconfig{'SHOW_HOMEPAGE'} eq "yes")){
print " "; } if($fpmconfig{'SHOW_LOGIN'} eq "yes"){ print qq~ [$fpmlang{'ADMIN'}] ~; } if($fpmconfig{'SHOW_HOMEPAGE'} eq "yes"){ print qq~ [$fpmlang{'HOMEPAGE'}] ~; } print qq~ $tdpn |
| $tdpn |
| IP: | $ip |
$fpmlang{'THANK_TITLE'}
|
||
| $tdpn |
|
~;
if($fpmskin{'TITLE_IMAGE_URL'}){
print qq~
~; } else{ if($fpmlang{'TITLE'}){ print qq~ $fpmlang{'TITLE'} - Control Panel ~; } else{ print qq~ Free Perl Mailer - Control Panel ~; } } print qq~
~; } print qq~ |
||||
| $tdpn |
| $tdpn |
| $tdpn |
| $tdpn |
| $tdpn |
| $tdpn |
| $tdpn |
FPM Mailing List
|
||||||
| $tdpn |
|
||
| $tdpn |