Changeset 11370 for extensions/CryptograPHP/include/contactform.inc.php
- Timestamp:
- Jun 14, 2011, 3:15:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/include/contactform.inc.php
r11316 r11370 6 6 include($cryptinstall); 7 7 8 add_event_handler('display_contactform', 'add_c aptcha');9 add_event_handler('check_contactform_params', 'check_c aptcha');8 add_event_handler('display_contactform', 'add_crypto'); 9 add_event_handler('check_contactform_params', 'check_crypto'); 10 10 11 function add_c aptcha()11 function add_crypto() 12 12 { 13 13 global $template, $conf; … … 15 15 if (!is_a_guest()) return; 16 16 17 $template->set_prefilter('cf_form', ' captcha_prefilter');17 $template->set_prefilter('cf_form', 'prefilter_crypto'); 18 18 $template->assign('CAPTCHA', dsp_crypt($conf['cryptographp_theme'][0].'.cfg.php',1)); 19 19 } 20 20 21 function captcha_prefilter($content, $smarty)21 function prefilter_crypto($content, $smarty) 22 22 { 23 23 $search = ' … … 36 36 } 37 37 38 function check_c aptcha($infos)38 function check_crypto($infos) 39 39 { 40 40 if (!is_a_guest()) return $infos;
Note: See TracChangeset
for help on using the changeset viewer.