1<?php 2/** 3 * CAPTCHA antispam plugin - Image generator 4 * 5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6 * @author Andreas Gohr <gohr@cosmocode.de> 7 */ 8 9if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/'); 10define('NOSESSION',true); 11define('DOKU_DISABLE_GZIP_OUTPUT', 1); 12require_once(DOKU_INC.'inc/init.php'); 13require_once(DOKU_INC.'inc/auth.php'); 14 15$ID = $_REQUEST['id']; 16$plugin = plugin_load('helper','captcha'); 17$rand = PMA_blowfish_decrypt($_REQUEST['secret'],auth_cookiesalt()); 18$code = $plugin->_generateCAPTCHA($plugin->_fixedIdent(),$rand); 19$plugin->_imageCAPTCHA($code); 20 21//Setup VIM: ex: et ts=4 enc=utf-8 : 22