source: documentation/trunk/packages/dokuwiki-2011-05-25a/lib/plugins/captcha/img.php@ 25027

Last change on this file since 25027 was 25027, checked in by jmt12, 12 years ago

Adding the packages directory, and within it a configured version of dokuwiki all ready to run

File size: 660 bytes
Line 
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 <[email protected]>
7 */
8
9if(!defined('DOKU_INC')) define('DOKU_INC',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 :
Note: See TracBrowser for help on using the repository browser.