Config.txt#!/usr/local/bin/perl ###################################################################### +###### # + # # WebShop Version 1.5 + # # Written by Matthew Wright mattw@worldwidemart.com + # # Created 7/12/96 Last Modified 5/2/97 + # # + # # Copyright 1997 Craig Patchett & Matthew Wright. All Rights Reserved +. # # This program is part of The CGI/Perl Cookbook from John Wiley & Sons +. # # License to use this program or install it on a server (in original o +r # # modified form) is granted only to those who have purchased a copy of + The # # CGI/Perl Cookbook. (This notice must remain as part of the source co +de.) # # + # ###################################################################### +###### ###################################################################### +###### # Define configuration constants + # ###################################################################### +###### %CONFIG = ('recipient', '', 'subject', '', 'email', '', 'name', '', 'address', '', 'zip', '', 'field_names', '', 'sort', '', 'print_config', '', 'env_report', '', 'redirect', '', 'required', '', 'error_html_template', '', 'success_html_template' +, '', 'email_template', '', 'reply_message_template +', '', 'reply_message_attach', '', 'reply_message_subject' +, '', 'reply_message_from', '', 'log_template', '', 'log_filename', '', 'log_fields', '', 'log_delimiter', '||', 'log_uid', '', 'blatemail', '', 'mail_list', ''); # $CONFIG_DIR is the full path to the root directory under which # configuration files must be stored. It should end with a directory # delimiter $CONFIG_DIR = 'C:/indigoperl-5.6/cgi-bin/webshop/';C:/indigoperl-5.6/h +tdocs # $WEBSHOP_CGI_URL is the URL of this CGI script. $WEBSHOP_CGI_URL = 'http://192.168.0.14/C:/indigoperl-5.6/cgi-bin/webs +hop.cgi'; # $WEB_SERVER is the host name of your web server. If the name of you +r web # server is host.xxx, set this to 'host.xxx'. $WEB_SERVER = '192.168.0.14'; # $SMTP server is the server name of your SMTP server. For example, i +f # your service provider is host.net, try setting this to host.net or # smtp.host.net $SMTP_SERVER = 'mail.herb-pharm.com'; # This is the directory for lock files to be stored. It is recomended + that # this be set to /tmp if you are on a Unix system or some place outsid +e of # the web server space. $LOCK_DIR = 'c:/indigoperl-5.6/htdocs/tmp/'; # This is the maximum amount of time the CGI script should wait before + it # returns an error that it could not lock the file. $MAX_WAIT = 5; # $REQUIRE_DIR is the directory in which all of your required files ar +e # placed. On most systems, if ou leave the required files in the same # directory as the CGI script, you can leave this variable blank. # Otherwise, if you move the required files to another directory, spec +ify # the full path here. $REQUIRE_DIR = 'c:/indigoperl-5.6/cgi-bin';
# Data File Variables $DATABASE = 'c:/indigoperl-5.6/htdocs/database.txt'; $MAX_MINUTES = 15; $PRODUCT_INFO = 'c:/indigoperl-5.6/htdocs/products.txt'; $TAX_TABLE = 'c:/indigoperl-5.6/htdocs/taxes.txt'; $SHIPPING_TABLE = 'c:/indigoperl-5.6/htdocs/shipping.txt'; # Page Template Variables $BASE_PRODUCT_PATH = 'c:/indigoperl-5.6/htdocs/'; $INTRO_HTML = 'c:/indigoperl-5.6/htdocs/feedback.htm'; $REVIEW_TEMPLATE = 'c:/indigoperl-5.6/htdocs/feedback.htm'; $INVOICE_TEMPLATE = 'c:/indigoperl-5.6/htdocs/invoice.html'; $FINAL_TEMPLATE = 'c:/indigoperl-5.6/htdocs/final.html'; # Email Variables $EMAIL_TEMPLATE = 'c:/indigoperl-5.6/htdocs/feedback.txt'; $ORDER_SUBJECT = 'FeedBack Information'; $ORDER_TO = 'eagle5@cdsnet.net'; $CC_ORDER = ''; $REPLY_TEMPLATE = 'c:/indigoperl-5.6/htdocs/feedback.txt'; $REPLY_SUBJECT = 'Order Confirmation'; $REPLY_FROM = 'Herb Pharm <wbishop@herb-pharm.com>'; 1;
In reply to cgi Beginner by willyb21
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |