142a27035SAndreas Gohr<?php 242a27035SAndreas Gohr/** 342a27035SAndreas Gohr * CAPTCHA antispam plugin - Image generator 442a27035SAndreas Gohr * 542a27035SAndreas Gohr * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 642a27035SAndreas Gohr * @author Andreas Gohr <gohr@cosmocode.de> 742a27035SAndreas Gohr */ 842a27035SAndreas Gohr 9265a0b9eSAndreas Gohrif(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__).'/../../../'); 1042a27035SAndreas Gohrdefine('NOSESSION', true); 1142a27035SAndreas Gohrdefine('DOKU_DISABLE_GZIP_OUTPUT', 1); 1242a27035SAndreas Gohrrequire_once(DOKU_INC.'inc/init.php'); 1342a27035SAndreas Gohrrequire_once(DOKU_INC.'inc/auth.php'); 1442a27035SAndreas Gohr 1542a27035SAndreas Gohr$ID = $_REQUEST['id']; 16*104ec268SAndreas Gohr/** @var helper_plugin_captcha $plugin */ 1777e00bf9SAndreas Gohr$plugin = plugin_load('helper', 'captcha'); 1842a27035SAndreas Gohr$rand = PMA_blowfish_decrypt($_REQUEST['secret'], auth_cookiesalt()); 1942a27035SAndreas Gohr$code = $plugin->_generateCAPTCHA($plugin->_fixedIdent(), $rand); 2042a27035SAndreas Gohr$plugin->_imageCAPTCHA($code); 2142a27035SAndreas Gohr 2242a27035SAndreas Gohr//Setup VIM: ex: et ts=4 enc=utf-8 : 23