Ignore:
Timestamp:
Jun 14, 2011, 3:15:38 PM (13 years ago)
Author:
mistic100
Message:

change functions names (avoid errors if Captcha is also loaded)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/include/contactform.inc.php

    r11316 r11370  
    66include($cryptinstall);
    77
    8 add_event_handler('display_contactform', 'add_captcha');
    9 add_event_handler('check_contactform_params', 'check_captcha');
     8add_event_handler('display_contactform', 'add_crypto');
     9add_event_handler('check_contactform_params', 'check_crypto');
    1010
    11 function add_captcha()
     11function add_crypto()
    1212{
    1313  global $template, $conf;
     
    1515  if (!is_a_guest()) return;
    1616
    17   $template->set_prefilter('cf_form', 'captcha_prefilter');
     17  $template->set_prefilter('cf_form', 'prefilter_crypto');
    1818  $template->assign('CAPTCHA', dsp_crypt($conf['cryptographp_theme'][0].'.cfg.php',1));
    1919}
    2020
    21 function captcha_prefilter($content, $smarty)
     21function prefilter_crypto($content, $smarty)
    2222{
    2323  $search = '
     
    3636}
    3737
    38 function check_captcha($infos)
     38function check_crypto($infos)
    3939{
    4040  if (!is_a_guest()) return $infos;
Note: See TracChangeset for help on using the changeset viewer.