#!/usr/local/bin/perl ########################################################### # A Postcard Program # # Written by Jason W. Maloney - December 20, 1998 # # Updated - February 22, 2001 # # # # This script is very easy to set-up, even for those # # just starting out with CGI. It shouldn't take longer # # than 10 minutes to get it up and running. It has been # # tested on UNIX & NT and no problems were discovered. # # # # The use of templates make it very easy to customize # # the postcard script to your needs. # # # # MAKE SURE THAT YOU READ OVER THE TERMS OF AGREEMENT # # BEFORE USING THIS SCRIPT. BY USING THIS SCRIPT, # # YOU ARE AGREEING TO ABIDE BY THEM. HOWEVER, IF YOU # # DON'T AGREE WITH IT, THEN DON'T USE MY SCRIPTS. ALSO, # # PLEASE READ THE 'README.TXT' FILE BEFORE INSTALLING. # # KEEP IN MIND THAT JASON'S SCRIPTS & THE AESTHETIC # # SURGERY CENTER SHALL NOT BE HELD LIABLE FOR ANY # # DAMAGES THAT MAY OCCUR FROM DOWNLOADING AND/OR # # INSTALLING MY PROGRAMS. IN SHORT, DOWNLOAD AND USE MY # # PROGRAMS AT YOUR OWN RISK! IF YOU DO NOT AGREE WITH # # THIS, THEN DO NOT USE ANY OF MY PROGRAMS. # # # ########################################################### ########################################################### $domain_name = "yourcompany.com"; $location = "http://www.yourcompany.com/postcard/"; $basepicurl = "http://www.yourcompany.com/postcard/pictures/"; $cgi = "http://www.yourcompany.com/cgi-bin/card.cgi"; $cards = "$ENV{DOCUMENT_ROOT}/postcard/cards/"; $basepicdir = "$ENV{DOCUMENT_ROOT}/postcard/pictures/"; $preview1 = "$ENV{DOCUMENT_ROOT}/postcard/preview1.html"; $preview2 = "$ENV{DOCUMENT_ROOT}/postcard/preview2.html"; $makecard = "$ENV{DOCUMENT_ROOT}/postcard/makecard.html"; $thank_you = "$ENV{DOCUMENT_ROOT}/postcard/thankyou.html"; $error = "$ENV{DOCUMENT_ROOT}/postcard/error.html"; $email1 = "$ENV{DOCUMENT_ROOT}/postcard/email1.txt"; $email2 = "$ENV{DOCUMENT_ROOT}/postcard/email2.txt"; $mailprog = '/usr/lib/sendmail'; $MAX_DAYS = '10'; @picsallowed = ('gif','jpg','jpeg'); $subject1 = "You Have A Postcard!"; $subject2 = "Thank You for using our Postcard Card"; $uploadmax = '50'; $allowed = '1500'; require "$ENV{DOCUMENT_ROOT}/cgi-bin/program.cgi";
Make your own free website on Tripod.com