source: extensions/Subscribe_to_comments/main.inc.php @ 12561

Last change on this file since 12561 was 12561, checked in by mistic100, 12 years ago

and standalone links, fully compatible with Comments on Albums

File size: 1.1 KB
Line 
1<?php 
2/*
3Plugin Name: Subscribe To Comments
4Version: auto
5Description: This plugin allows you to subscribe to comments by mail.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=587
7Author: Mistic
8Author URI: http://www.strangeplanet.fr
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $prefixeTable;
14
15define('SUBSCRIBE_TO_DIR' , basename(dirname(__FILE__)));
16define('SUBSCRIBE_TO_PATH' , PHPWG_PLUGINS_PATH . SUBSCRIBE_TO_DIR . '/');
17define('SUBSCRIBE_TO_TABLE', $prefixeTable . 'subscribe_to_comments');
18
19include_once(SUBSCRIBE_TO_PATH.'subscribe_to_comments.inc.php');
20include_once(SUBSCRIBE_TO_PATH.'include/functions.inc.php');
21
22load_language('plugin.lang', SUBSCRIBE_TO_PATH);
23
24// send mails
25add_event_handler('user_comment_insertion', 'stc_comment_insertion');
26add_event_handler('user_comment_validation', 'stc_comment_validation', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
27
28// subscribe
29add_event_handler('loc_end_picture', 'stc_on_picture');
30add_event_handler('loc_begin_index', 'stc_on_album');
31
32// management
33add_event_handler('loc_end_section_init', 'stc_detect_section');
34add_event_handler('loc_end_index', 'stc_load_section');
35
36?>
Note: See TracBrowser for help on using the repository browser.