Changeset 26069 for extensions/EasyCaptcha/main.inc.php
- Timestamp:
- Dec 21, 2013, 6:37:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/EasyCaptcha/main.inc.php
r26025 r26069 32 32 { 33 33 add_event_handler('loc_end_section_init', 'easycaptcha_document_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 34 add_event_handler('loc_begin_register', 'easycaptcha_register_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 34 35 } 35 36 … … 59 60 } 60 61 61 if (script_basename() == ' register' && $conf['EasyCaptcha']['activate_on']['register'])62 if (script_basename() == 'picture' && $conf['EasyCaptcha']['activate_on']['picture']) 62 63 { 63 $conf['EasyCaptcha']['template'] = 'register';64 include(EASYCAPTCHA_PATH . 'include/register.inc.php');65 }66 else if (script_basename() == 'picture' && $conf['EasyCaptcha']['activate_on']['picture'])67 {68 $conf['EasyCaptcha']['template'] = 'comment';69 64 include(EASYCAPTCHA_PATH . 'include/picture.inc.php'); 70 65 } … … 78 73 ) 79 74 { 80 $conf['EasyCaptcha']['template'] = 'comment';81 75 include(EASYCAPTCHA_PATH . 'include/category.inc.php'); 82 76 } 83 77 else if ($page['section'] == 'contact' && $conf['EasyCaptcha']['activate_on']['contactform']) 84 78 { 85 $conf['EasyCaptcha']['template'] = 'contactform';86 79 include(EASYCAPTCHA_PATH . 'include/contactform.inc.php'); 87 80 } 88 81 else if ($page['section'] == 'guestbook' && $conf['EasyCaptcha']['activate_on']['guestbook']) 89 82 { 90 $conf['EasyCaptcha']['template'] = 'guestbook';91 83 include(EASYCAPTCHA_PATH . 'include/guestbook.inc.php'); 92 84 } 85 } 86 } 87 function easycaptcha_register_init() 88 { 89 global $conf; 90 91 if (!is_a_guest()) 92 { 93 return; 94 } 95 96 if ($conf['EasyCaptcha']['activate_on']['register']) 97 { 98 include(EASYCAPTCHA_PATH . 'include/register.inc.php'); 93 99 } 94 100 }
Note: See TracChangeset
for help on using the changeset viewer.