Changeset 12619 for extensions/CryptograPHP/main.inc.php
- Timestamp:
- Nov 13, 2011, 1:19:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/main.inc.php
r12617 r12619 21 21 define('CRYPTO_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); 22 22 23 add_event_handler('loc_end_section_init', 'crypto_init'); 23 add_event_handler('init', 'crypto_init'); 24 add_event_handler('loc_end_section_init', 'crypto_section_init'); 24 25 25 26 function crypto_init() 26 27 { 27 global $conf, $ pwg_loaded_plugins, $page;28 global $conf, $user; 28 29 29 30 $conf['cryptographp'] = unserialize($conf['cryptographp']); … … 38 39 include(CRYPTO_PATH.'include/picture.inc.php'); 39 40 } 40 else if (isset($_GET['/contact'])) 41 // because of ContactForm specificities, Captcha can't be displayed on these themes 42 else if ( isset($_GET['/contact']) and strstr($user['theme'], 'simple') === false and strstr($user['theme'], 'stripped') === false ) 41 43 { 42 44 include(CRYPTO_PATH.'include/contactform.inc.php'); 43 45 } 44 else if ( 46 } 47 48 function crypto_section_init() 49 { 50 global $conf, $pwg_loaded_plugins, $page; 51 52 if ( 45 53 script_basename() == 'index' and $conf['cryptographp']['comments_action'] != 'inactive' and 46 54 isset($pwg_loaded_plugins['Comments_on_Albums']) and isset($page['section']) and
Note: See TracChangeset
for help on using the changeset viewer.