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