Changeset 17319 for extensions/CryptograPHP/main.inc.php
- Timestamp:
- Aug 2, 2012, 8:14:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/main.inc.php
r15996 r17319 22 22 23 23 add_event_handler('init', 'crypto_init'); 24 add_event_handler('loc_end_section_init', 'crypto_section_init' );24 add_event_handler('loc_end_section_init', 'crypto_section_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 25 25 26 26 function crypto_init() … … 41 41 include(CRYPTO_PATH.'include/picture.inc.php'); 42 42 } 43 else if (isset($_GET['/contact']) and $conf['cryptographp']['activate_on']['contactform']) 44 { 45 include(CRYPTO_PATH.'include/contactform.inc.php'); 46 } 47 else if (isset($_GET['/guestbook']) and $conf['cryptographp']['activate_on']['guestbook']) 48 { 49 include(CRYPTO_PATH.'include/guestbook.inc.php'); 50 } 43 51 44 } 52 45 … … 64 57 { 65 58 include(CRYPTO_PATH.'include/category.inc.php'); 59 } 60 else if ( preg_match('#contact$#', $_SERVER['REQUEST_URI']) and $conf['cryptographp']['activate_on']['contactform']) 61 { 62 include(CRYPTO_PATH.'include/contactform.inc.php'); 63 } 64 else if (isset($page['section']) and $page['section'] == 'guestbook' and $conf['cryptographp']['activate_on']['guestbook']) 65 { 66 include(CRYPTO_PATH.'include/guestbook.inc.php'); 66 67 } 67 68 }
Note: See TracChangeset
for help on using the changeset viewer.