<?php
/* gk@proliberty.com

$SPECIAL_FIELD array values are set here.

SPECIAL_FIELD NAMES HAVE SPECIAL MEANING
- i.e., gk_formmail.php uses these fields in special ways

NOTABLY ABSENT FROM THIS CONFIG FILE ARE 
- the following (optional) SPECIAL_FIELDS which can recieve user form input:

        "email",           // email address of the person who filled in the form
        "realname",     // the real name of the person who filled in the form
        "arverify",        // verification field to allow auto-responding
        "imgverify",    // verification field to allow submission
        "multi_go_back",// this field should be set when the user clicks the
                        // back button or link in a multi-page form sequence
*/

// THE FOLLOWING YOU CAN SET HERE:

// "reflexive", runs in reflexive mode - i.e., don't validate form the first time
//$SPECIAL_VALUES['reflexive'] = true;
// "quiet", run in quiet mode - i.e., no output is generated
//$SPECIAL_VALUES['quiet'] = false;
// "recipients", comma-separated list of email addresses to which we'll send the results
//$SPECIAL_VALUES['recipients'] = "";
// "cc", comma-separated list of email addresses to which we'll CC the results
//$SPECIAL_VALUES['cc'] = "";
// "bcc", comma-separated list of email addresses to which we'll BCC the results
//$SPECIAL_VALUES['bcc'] = "";
// "required", comma-separated list of fields that must be found in the input
//$SPECIAL_VALUES['required'] = "";
// "conditions", complex condition tests
//$SPECIAL_VALUES['conditions'] = "";
// "fmcompute", computations
//$SPECIAL_VALUES['fmcompute'] = "";
// "fmmodules", list of modules required
//$SPECIAL_VALUES['fmmodules'] = "";
// "mail_options", comma-separated list of options
//$SPECIAL_VALUES['mail_options'] = "";
// "good_url", URL to go to on success
//$SPECIAL_VALUES['good_url'] = "";
// "good_template", template file to display on success
//$SPECIAL_VALUES['good_template'] = "";
// "bad_url", URL to go to on error
//$SPECIAL_VALUES['bad_url'] = "";
// "bad_template", template file to display on error
//$SPECIAL_VALUES['bad_template'] = "";
// "template_list_sep", separator when expanding lists in templates
//$SPECIAL_VALUES['template_list_sep'] = "";
// "this_form",    the URL of the form (can be used by bad_url)
//$SPECIAL_VALUES['this_form'] = "";
// "subject", subject for the email
//$SPECIAL_VALUES['subject'] = "";
// "env_report", comma-separated list of environment variables to report
//$SPECIAL_VALUES['env_report'] = "";
// "alert_to", email address to send alerts (errors) to
//$SPECIAL_VALUES['alert_to'] = "";
// "filter", a supported filter to use
//$SPECIAL_VALUES['filter'] = "";
// "filter_options", options for using the filter
//$SPECIAL_VALUES['filter_options'] = "";
// "filter_fields", list of fields to filter (default is to filter all fields)
//$SPECIAL_VALUES['filter_fields'] = "";
// "logfile", log file to write to
//$SPECIAL_VALUES['logfile'] = "";
// "csvfile", file to write CSV records to
//$SPECIAL_VALUES['csvfile'] = "";
// "csvcolumns", columns to save in the csvfile
//$SPECIAL_VALUES['csvcolumns'] = "";
/* "crm_url", URL for sending data to the CRM; note that the
      value must have a valid prefix specified in TARGET_URLS
*/    
//$SPECIAL_VALUES['crm_url'] = "";
// "crm_spec", CRM specification (field mapping)
//$SPECIAL_VALUES['crm_spec'] = "";
// "crm_options", comma-separated list of options to control CRM processing
//$SPECIAL_VALUES['crm_options'] = "";
// "derive_fields", a list of fields to derive from other fields
//$SPECIAL_VALUES['derive_fields'] = "";
// "file_names", specifies names for files being uploaded
//$SPECIAL_VALUES['file_names'] = "";
// "autorespond", specification for auto-responding
//$SPECIAL_VALUES['autorespond'] = "";
// "multi_start", set this field on the first page of a multi-page form sequence
//$SPECIAL_VALUES['multi_start'] = "";
/* "multi_keep",    set this field on the pages of a multi-page form sequence
                 to the list of fields that should be kept when moving
                 forward after going backwards
*/
//$SPECIAL_VALUES['multi_keep'] = "";
// "next_form", next form name or empty for last form
//$SPECIAL_VALUES['next_form'] = "";


/*
The following global values are available for error handling, after include(gk_formmail.php)
$OUTPUT_VALUES = array(
    'FormOutput', // HTML output generated by this script, when $SPECIAL_VALUES['quiet'] is true
    'FormErrorText', // formatted error output
    'FormErrorItemList', // formatted list of errors
    'FormError', // $aSessionVars["FormError"] = $error_mesg;
    'FormErrorInfo', // $aSessionVars["FormErrorInfo"] = $s_extra_info;
    'FormErrorCode', // $aSessionVars["FormErrorCode"] = $error_code;
    'FormErrorItems', // $aSessionVars["FormErrorItems"] = $a_item_list;
    'FormIsUserError', // $aSessionVars["FormIsUserError"] = $b_user_error;
    'FormAlerted' // $aSessionVars["FormAlerted"] = $b_alerted;
);
*/

////////////////////////////////////////
// EXAMPLE SETTINGS
// "reflexive", runs in reflexive mode - i.e., don't validate form the first time
$SPECIAL_VALUES['reflexive'] = true;
//$SPECIAL_VALUES['quiet'] = false;
$SPECIAL_VALUES['recipients'] = "null@proliberty.com";
$SPECIAL_VALUES['cc'] = "";
$SPECIAL_VALUES['bcc'] = "";
//$SPECIAL_VALUES['alert_to'] = "nobody@example.com";
$SPECIAL_VALUES['required'] = "mesg:Message is required,email:Email address is required,realname:Your name is required";
$SPECIAL_VALUES['subject'] = "Reflexive FormMail Test";

//$SPECIAL_VALUES['good_url'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].".good_url.htm";
//$SPECIAL_VALUES['this_form']=$_SERVER['HTTP_REFERER']; // required by tectite bad_url script
//$SPECIAL_VALUES['bad_url'] = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].".bad_url.php";

$SPECIAL_VALUES['mail_options'] = "AlwaysList,Exclude=submit;Submit";

$OUTPUT_VALUES['FormSuccessText']="Thank You!";
$OUTPUT_VALUES['FormErrorText']="Form Errors";

$SPECIAL_VALUES['conditions'] = ":##TEST#mesg ~ /^[a-z ]+$/i #Message can only include characters a-z or A-Z, and spaces#";

////////////////////////////////////////

?>
1