Changeset 26069 for extensions/EasyCaptcha/include/common.inc.php
- Timestamp:
- Dec 21, 2013, 6:37:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/EasyCaptcha/include/common.inc.php
r26025 r26069 27 27 28 28 $conf['EasyCaptcha']['drag']['selected'] = array_rand($conf['EasyCaptcha']['drag']['selection']); 29 $conf['EasyCaptcha']['drag']['text'] 30 $conf['EasyCaptcha']['key'] 29 $conf['EasyCaptcha']['drag']['text'] = l10n($drag_images[ $conf['EasyCaptcha']['drag']['selected'] ]); 30 $conf['EasyCaptcha']['key'] = $conf['EasyCaptcha']['challenge'] .'-'. pwg_password_hash($conf['secret_key'] . $conf['EasyCaptcha']['drag']['selected']); 31 31 } 32 32 // Tic-tac-toe … … 49 49 50 50 $template->set_filename('EasyCaptcha', realpath(EASYCAPTCHA_PATH.'template/'.$conf['EasyCaptcha']['template'].'.tpl')); 51 $template->a ssign_var_from_handle('EASYCAPTCHA_CONTENT', 'EasyCaptcha');51 $template->append('EASYCAPTCHA', array('parsed_content' => $template->parse('EasyCaptcha', true)), true); 52 52 53 53
Note: See TracChangeset
for help on using the changeset viewer.