check($Captcha_Code) == false) {
$capture_status = "invalid";
$errors .= 'Incorrect security code entered
';
}
}
if(empty($errors))
{
$_POST['recipients'] = $contact_form_email;
include('scripts/formmail/feedback.php');
}
}
else
{
$capture_status = "empty";
$errors .= "\n The captcha code is empty!";
}
}
// Function to validate against any email injection attempts
function IsInjected($str)
{
$injections = array('(\n+)',
'(\r+)',
'(\t+)',
'(%0A+)',
'(%0D+)',
'(%08+)',
'(%09+)'
);
$inject = join('|', $injections);
$inject = "/$inject/i";
if(preg_match($inject,$str))
{
return true;
}
else
{
return false;
}
}
?>
Contact AJE Components