Пример #1
0
function captcha_process()
{
    global $messages;
    if (captcha_go()) {
        $post_code = trim(optional_param('security_code'));
        if (empty($post_code)) {
            $messages[] = gettext('Please enter the verification code.');
            return true;
        } else {
            if (!is_human($post_code)) {
                $messages[] = gettext('Verification code incorrect. Please try again.');
                return true;
            }
        }
    }
    //$messages[] = gettext('Verification code passed.');
    return false;
}
<?php

// $Id$
if (captcha_go()) {
    $run_result .= captcha_print_form();
}