Changeset 26072 for extensions/CryptograPHP/main.inc.php
- Timestamp:
- Dec 21, 2013, 6:39:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/CryptograPHP/main.inc.php
r26067 r26072 38 38 { 39 39 add_event_handler('loc_end_section_init', 'crypto_document_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 40 add_event_handler('loc_begin_register', 'crypto_register_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30); 40 41 } 41 42 … … 64 65 return; 65 66 } 66 67 if (script_basename() == ' register' and $conf['cryptographp']['activate_on']['register'])67 68 if (script_basename() == 'picture' and $conf['cryptographp']['activate_on']['picture']) 68 69 { 69 $conf['cryptographp']['template'] = 'register';70 include(CRYPTO_PATH . 'include/register.inc.php');71 }72 else if (script_basename() == 'picture' and $conf['cryptographp']['activate_on']['picture'])73 {74 $conf['cryptographp']['template'] = 'comment';75 70 include(CRYPTO_PATH . 'include/picture.inc.php'); 76 71 } … … 84 79 ) 85 80 { 86 $conf['cryptographp']['template'] = 'comment';87 81 include(CRYPTO_PATH . 'include/category.inc.php'); 88 82 } 89 83 else if ($page['section'] == 'contact' && $conf['cryptographp']['activate_on']['contactform']) 90 84 { 91 $conf['cryptographp']['template'] = 'contactform';92 85 include(CRYPTO_PATH . 'include/contactform.inc.php'); 93 86 } 94 87 else if ($page['section'] == 'guestbook' && $conf['cryptographp']['activate_on']['guestbook']) 95 88 { 96 $conf['cryptographp']['template'] = 'guestbook';97 89 include(CRYPTO_PATH . 'include/guestbook.inc.php'); 98 90 } 91 } 92 } 93 function crypto_register_init() 94 { 95 global $conf; 96 97 if (!is_a_guest()) 98 { 99 return; 100 } 101 102 if ($conf['cryptographp']['activate_on']['register']) 103 { 104 include(CRYPTO_PATH . 'include/register.inc.php'); 99 105 } 100 106 }
Note: See TracChangeset
for help on using the changeset viewer.