<?php
    
// inMail Configuration File
    // Lines that start with a double slash are comments.


    // The email address where form submissions should be sent
    
$CONFIG['To'] = "nobody@islandnet.com";


    
// The email address that form submissions should appear to come from
    // In this case we use the 'Name' and 'Email' values that are entered
    // by the visitor.
    
$CONFIG['From'] = "{Name} <{Email}>";


    
// The subject that should appear in the email
    
$CONFIG['Subject'] = "Form Submission";


    
// The template to use to format the body of the email message
    // In this demo we just use the system default.
    
$CONFIG['EmailTemplate'] = "";


    
// A template to display if the processing is successful
    // In this demo we just use the system default.
    
$CONFIG['SuccessTemplate'] = "";


    
// A template to display if there are any errors during processing
    // In this demo we just use the system default.
    
$CONFIG['ErrorTemplate'] = "";


    
// This is a list of banned words.  All input fields are checked against this list.
    
$CONFIG['BannedWords'] = "badword1,badword2";


    
// MySQL Database for tracking captcha codes, rate limiting, etc.
    // This is shared by all the gadgets I'll use
    
$CONFIG['MySQLHostname'] = "sql3.islandnet.com";
    
$CONFIG['MySQLUsername'] = "********";
    
$CONFIG['MySQLPassword'] = "********";
    
$CONFIG['MySQLDatabase'] = "********";
    
$CONFIG['MySQLTablePrefix'] = "";


    
// Rate Limiting: the maximum number of times the same visitor can post
    // through this gadget.  For this example, it's once every minute.
    
$CONFIG['RateLimitMax'] = 1;
    
$CONFIG['RateLimitPeriod'] = '1m';


    
// The length of the captcha code to use (from 2 to 10)
    
$CONFIG['CaptchaCodeLength'] = 4;


    
// The background color to use for the captcha code image (a hex value or 'random')
    
$CONFIG['CaptchaBackgroundColor'] = "FFFFFF";


    
// The foreground (text) color to use for the captcha code image (a hex value or 'random')
    
$CONFIG['CaptchaForegroundColor'] = "random";


    
// The captcha code will be generated using these characters:
    
$CONFIG['CaptchaCodeCharacters'] = "abcdefhjkmnprstuwxzACDEFGHJKMNPQRSTUWX34567";


    
// An optional list of TrueType fonts to use instead of the default ones
    // In this demo we use the default non-truetype fonts
    
$CONFIG['CaptchaFontList'] = "arial";


    
// The format for individual audio files that will be used to generate an audio
    // version of the captcha code.  The '%s' placeholder will be replaced with an
    // individual letter or number from the captcha code.
    
$CONFIG['CaptchaAudioFiles'] = "audio/%s.wav";


    
// The volume for the audio captcha file.  This is a percentage of the audio file's
    // internal volume (eg: 200 will double the volume, 100 will leave it the same, 50 will
    // cut the volume in half.
    
$CONFIG['CaptchaAudioVolume'] = 200;


    
// This is an optional list of background audio files.  If set, one of these will be
    // selected at random and will play in the background, making it harder for automated
    // scripts to distinguish the captcha code.
    
$CONFIG['CaptchaAudioBackground'] = "audio/background1.wav,audio/background2.wav";


    
// The volume for the background audio file.  This is a percentage of the audio file's
    // internal volume (eg: 200 will double the volume, 100 will leave it the same, 50 will
    // cut the volume in half.
    
$CONFIG['CaptchaAudioBackgroundVolume'] = 50;


    
// This many seconds of silence will be inserted before the first letter of the
    // captcha code.
    
$CONFIG['CaptchaAudioStartDelay'] = 1.0;


    
// This many seconds of silence will be inserted in between each letter of the
    // captcha code.
    
$CONFIG['CaptchaAudioDelay'] = 0.75;


    
// This many seconds of silence will be added after the last letter of the
    // captcha code.
    
$CONFIG['CaptchaAudioEndDelay'] = 0.5;


    
// Audio captcha codes require a directory for caching the generated sound file.
    
$CONFIG['CacheDirectory'] = "cache";


    
// The name of an ACL file for controlling access to this gadget
    
$CONFIG['ACL'] = ".htacl";


    
// The name of a file to save submissions to, if any
    
$CONFIG['SaveFile'] = "";


    
// The template to use when adding an entry to the file above (disabled in this demo)
    
$CONFIG['SaveTemplate'] = "{Name},{Email},{Message nl2br}\n";


    
// If you want to record form submissions into a MySQL database, set these values:
    // $CONFIG['SaveMySQLHostname'] = "sql3.islandnet.com";
    // $CONFIG['SaveMySQLUsername'] = "********";
    // $CONFIG['SaveMySQLPassword'] = "********";
    // $CONFIG['SaveMySQLDatabase'] = "********";
    // $CONFIG['SaveMySQLTemplate'] = "INSERT INTO inmail VALUES('{Name mysqlescape}','{Email mysqlescape}','{Message mysqlescape}')";




    // The 'Name' field must be between 2 and 50 characters in length.
    
$CONFIG['Name_MinLength'] = 2;
    
$CONFIG['Name_MaxLength'] = 50;


    
// The 'Email' field must be between 7 and 100 characters in length,
    // and it must be a valid email address.
    
$CONFIG['Email_MinLength'] = 7;
    
$CONFIG['Email_MaxLength'] = 100;
    
$CONFIG['Email_Test'] = "email";


    
// The 'Message' field must be between 3 and 5000 characters in length.
    
$CONFIG['Message_MinLength'] = 3;
    
$CONFIG['Message_MaxLength'] = 5000;


    
// The 'Attachment' field is a file upload field.  If supplied, it will be
    // saved into the "uploads" directory.  A MinLength of 0 means it's not
    // a required field.  It must be no larger than 10 kilobytes.
    
$CONFIG['Attachment_SavePath'] = "uploads";
    
$CONFIG['Attachment_MinLength'] = 0;
    
$CONFIG['Attachment_MaxLength'] = "10k";


    
// The 'SecurityCode' field must match the generated captcha code.
    
$CONFIG['SecurityCode_Test'] = "captcha";
?>