/** * Initialize plugun * * @global array $config * @global <type> $db * @global user $user * @param int $type */ function init($type) { global $config, $db, $user; $user->add_lang('mods/captcha_seznam'); parent::init($type); $this->hash = request_var('seznam_hash', ''); $this->code = request_var('seznam_code', ''); }
function validate() { if (!parent::validate()) { return false; } else { return $this->recaptcha_check_answer(); } }
function execute_demo() { global $config; $config_old = $config; foreach ($this->captcha_vars as $captcha_var => $template_var) { $config[$captcha_var] = request_var($captcha_var, (int) $config[$captcha_var]); } parent::execute_demo(); $config = $config_old; }