Changeset 11370 for extensions/CryptograPHP/include/category.inc.php
- Timestamp:
- Jun 14, 2011, 3:15:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/include/category.inc.php
r11316 r11370 6 6 include($cryptinstall); 7 7 8 add_event_handler('loc_begin_index', 'add_c aptcha');9 add_event_handler('user_comment_check', 'check_c aptcha', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);8 add_event_handler('loc_begin_index', 'add_crypto'); 9 add_event_handler('user_comment_check', 'check_crypto', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 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('comments_on_albums', ' captcha_prefilter');17 $template->set_prefilter('comments_on_albums', '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 load_language('plugin.lang', CRYPTO_PATH); … … 30 30 } 31 31 32 function check_c aptcha($action, $comment)32 function check_crypto($action, $comment) 33 33 { 34 34 global $conf, $user;
Note: See TracChangeset
for help on using the changeset viewer.