}
    ZapSession();
    exit;
}
//
// Hook system: before performing required and conditions etc.
//
if ($HOOK_DIR !== "") {
    if (!@(include "{$HOOK_DIR}/fmhookprechecks.inc.php")) {
        @(include "{$HOOK_DIR}/fmhookprechecks.inc");
    }
}
//
// check for required fields
//
if (!CheckRequired($SPECIAL_VALUES["required"], $aAllRawValues, $sMissing, $aMissingList)) {
    UserError("missing_fields", GetMessage(MSG_REQD_ERROR), $sMissing, $aMissingList);
}
//
// check complex conditions
//
if (!CheckConditions($SPECIAL_VALUES["conditions"], $aAllRawValues, $sMissing, $aMissingList)) {
    UserError("failed_conditions", GetMessage(MSG_COND_ERROR), $sMissing, $aMissingList);
}
//
// check CAPTCHA
//
CheckCaptchaSubmit();
//
// Hook system: after performing required and conditions etc.
//
예제 #2
0
    ZapSession();
    exit;
}
//
// This is the check for spiders; I can't imagine a spider will
// ever use the POST method.
//
if ($bIsGetMethod && count($aFormVars) == 0) {
    CreatePage(GetMessage(MSG_NO_DATA_PAGE));
    ZapSession();
    exit;
}
//
// check for required fields
//
if (!CheckRequired($SPECIAL_VALUES["required"], $aAllRawValues, $missing, $a_missing_list)) {
    UserError("missing_fields", GetMessage(MSG_REQD_ERROR), $missing, $a_missing_list);
}
//
// check complex conditions
//
if (!CheckConditions($SPECIAL_VALUES["conditions"], $aAllRawValues, $missing, $a_missing_list)) {
    UserError("failed_conditions", GetMessage(MSG_COND_ERROR), $missing, $a_missing_list);
}
//
// write to the CSV database
//
if (!empty($CSVDIR) && isset($SPECIAL_VALUES["csvfile"]) && !empty($SPECIAL_VALUES["csvfile"])) {
    WriteCSVFile($CSVDIR . "/" . basename($SPECIAL_VALUES["csvfile"]), $aAllRawValues);
    $bDoneSomething = true;
}