Changeset 12702 for extensions/Subscribe_to_comments
- Timestamp:
- Dec 7, 2011, 11:07:28 PM (13 years ago)
- Location:
- extensions/Subscribe_to_comments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/include/functions.inc.php
r12620 r12702 1 1 <?php 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 4 include_once(PHPWG_ROOT_PATH .'include/functions_tag.inc.php'); 3 5 4 6 /** -
extensions/Subscribe_to_comments/main.inc.php
r12607 r12702 17 17 define('SUBSCRIBE_TO_TABLE', $prefixeTable . 'subscribe_to_comments'); 18 18 19 include_once(SUBSCRIBE_TO_PATH.'include/functions.inc.php'); 20 include_once(SUBSCRIBE_TO_PATH.'include/subscribe_to_comments.inc.php'); 19 add_event_handler('init', 'stc_init'); 21 20 22 load_language('plugin.lang', SUBSCRIBE_TO_PATH); 21 function stc_init() 22 { 23 include_once(SUBSCRIBE_TO_PATH.'include/functions.inc.php'); 24 include_once(SUBSCRIBE_TO_PATH.'include/subscribe_to_comments.inc.php'); 23 25 24 // send mails 25 add_event_handler('user_comment_insertion', 'stc_comment_insertion'); 26 add_event_handler('user_comment_validation', 'stc_comment_validation', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 26 load_language('plugin.lang', SUBSCRIBE_TO_PATH); 27 27 28 // subscribe 29 add_event_handler('loc_end_picture', 'stc_on_picture');30 add_event_handler('loc_begin_index', 'stc_on_album');28 // send mails 29 add_event_handler('user_comment_insertion', 'stc_comment_insertion'); 30 add_event_handler('user_comment_validation', 'stc_comment_validation', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); 31 31 32 // management 33 add_event_handler('loc_end_section_init', 'stc_detect_section');34 add_event_handler('loc_end_index', 'stc_load_section');32 // subscribe 33 add_event_handler('loc_end_picture', 'stc_on_picture'); 34 add_event_handler('loc_begin_index', 'stc_on_album'); 35 35 36 // profile link 37 add_event_handler('loc_begin_profile', 'stc_profile_link'); 36 // management 37 add_event_handler('loc_end_section_init', 'stc_detect_section'); 38 add_event_handler('loc_end_index', 'stc_load_section'); 38 39 40 // profile link 41 add_event_handler('loc_begin_profile', 'stc_profile_link'); 42 } 39 43 ?>
Note: See TracChangeset
for help on using the changeset viewer.