|
Personal config file used to configure the script to work with
current form. Thus using different config files you can configure
the script to process different forms using different templates
located in different places etc.
::
Config variables ::..
Path to
Templates:
base_path - variable that specify server path to templates.
You need to specify full or relative [relative to the formprocessorpro.pl
file] path to the template files. The files specified in the HTML
and log templates will be appended to this to make the real file
name. This should not to be a URL, but a real file path; either
absolute or relative to the script.
For example: if your templates are located at the "/user1/www/templates/"
folder and your formprocessorpro.pl at "/user1/cgi-bin/"
folder then you need to use any one of two possible paths:
Full path (correct):
base-path = /user1/www/templates/
OR Relative path (also correct):
base-path = ../www/templates/
INCORRECT:
base-path = http://www.site.com/templates/
Send mail
method and configuration:
There are two ways to send emails. First is using Send Mail program
[command line mailer] and another is SMTP server [network delivery].
To choose one of these methods you need to comment another. For
example: if you want to use SMTP network delivery to send emails
then you need to comment mail_cmd variable [Send Mail variable]
using "#" at the beginning of the string and specify server
address at mailserver variable.
mail_cmd - sets the command to send mail on your system.
The mailer must be able to accept the message headers and body via
STDIN.
Default value:
mail_cmd = /usr/sbin/sendmail -t
mailserver - sets SMTP server.
Default value:
mailserver = localhost
Default send mail method and configuration:
mail_cmd = /usr/sbin/sendmail -t
#mailserver = localhost
Referers
that are allowed to use the script:
Referrers - set list of Valid Referers - i.e. those sites
& pages you want to be able to use the script. All others will
be denied access. You can be very specific so only one page has
access, or general so a whole site can use it. To allow any site
at all to use the form, comment out this value entirely.
Default value:
Referers = www.mitridat.com
Referers = mitridat.com
Referers = localhost
Content
Type:
content_type - set to the MIME type you want sent to the
browser. Unless you have good reason not to, use content_type =
Content-Type: text/html\n\n
Default value:
content_type = Content-Type: text/html\n\n
Attachments:
attachments_path - variable that specify server path to
attachments. You need to specify full or relative [relative to the
formprocessorpro.pl file] path to the attachments directory. There
will be stored user attachments from the form. This should not to
be a URL, but a real file path; either absolute or relative to the
script.
For example: if your attachments are located or needs to be located
at the "/user1/www/attachments/" folder and your formprocessorpro.pl
located at "/user1/cgi-bin/" folder then you need to use
either of:
Full path (correct):
attachments_path = /user1/www/attachments/
OR Relative path (also correct):
attachments_path = ../www/attachments/
INCORRECT:
base-path = http://www.site.com/attachments/
attachments_ttl - variable that set attachments time to
live on server. You can specify time for attachments to live on
server in seconds.
Default value:
attachments_ttl = 0
HTML
or Plain eMail:
mail_format - varible that define format for outgoing email
messages. Values: html or plain.
Default value:
mail_format = plain
|