* @uses utility_api.php */ /** * MantisBT Core API's */ require_once 'core.php'; require_api('config_api.php'); require_api('crypto_api.php'); require_api('gpc_api.php'); require_api('utility_api.php'); $f_public_key = gpc_get_string('public_key'); $t_private_key = substr(hash('whirlpool', 'captcha' . config_get_global('crypto_master_salt') . $f_public_key, false), 0, 5); $t_system_font_folder = get_font_path(); $t_font_per_captcha = config_get('font_per_captcha'); $t_captcha_init = array('TTF_folder' => $t_system_font_folder, 'TTF_RANGE' => array($t_font_per_captcha)); $captcha = new masc_captcha($t_captcha_init); $captcha->make_captcha($t_private_key); # # The class below was derived from # http://www.phpclasses.org/browse/package/1163.html # # *** 3.0 Author # Pascal Rehfeldt # Pascal@Pascal-Rehfeldt.com # # http://www.phpclasses.org/browse.html/author/102754.html # # # *** 3.1 License # GNU General Public License (Version 2, June 1991) #
* @package MantisBT * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @author Marcello Scata' <marcelloscata at users.sourceforge.net> ITALY * @link http://www.mantisbt.org */ /** * MantisBT Core API's */ require_once 'core.php'; $f_public_key = gpc_get_int('public_key'); $t_key = utf8_strtolower(utf8_substr(md5(config_get('password_confirm_hash_magic_string') . $f_public_key), 1, 5)); $t_system_font_folder = get_font_path(); $t_font_per_captcha = config_get('font_per_captcha'); $t_captcha_init = array('TTF_folder' => $t_system_font_folder, 'TTF_RANGE' => array($t_font_per_captcha)); $captcha = new masc_captcha($t_captcha_init); $captcha->make_captcha($t_key); # # The class below was derived from # http://www.phpclasses.org/browse/package/1163.html # # *** 3.0 Author # Pascal Rehfeldt # Pascal@Pascal-Rehfeldt.com # # http://www.phpclasses.org/browse.html/author/102754.html # # # *** 3.1 License # GNU General Public License (Version 2, June 1991) #