Changeset 11370 for extensions/CryptograPHP/include/register.inc.php
- Timestamp:
- Jun 14, 2011, 3:15:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/include/register.inc.php
r11316 r11370 6 6 include($cryptinstall); 7 7 8 add_event_handler('loc_end_page_header', 'add_c aptcha');9 add_event_handler('register_user_check', 'check_c aptcha');8 add_event_handler('loc_end_page_header', 'add_crypto'); 9 add_event_handler('register_user_check', 'check_crypto'); 10 10 11 function add_c aptcha()11 function add_crypto() 12 12 { 13 13 global $template, $conf; 14 14 15 $template->set_prefilter('register', ' captcha_prefilter');15 $template->set_prefilter('register', 'prefilter_crypto'); 16 16 $template->assign('CAPTCHA', dsp_crypt($conf['cryptographp_theme'][0].'.cfg.php',1)); 17 17 } 18 18 19 function captcha_prefilter($content, $smarty)19 function prefilter_crypto($content, $smarty) 20 20 { 21 21 load_language('plugin.lang', CRYPTO_PATH); … … 39 39 } 40 40 41 function check_c aptcha($errors)41 function check_crypto($errors) 42 42 { 43 43 if (!chk_crypt($_POST['code']))
Note: See TracChangeset
for help on using the changeset viewer.