예제 #1
0
파일: lib.php 프로젝트: pzingg/saugus_elgg
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();
}