source: extensions/user_tags/public.php @ 20251

Last change on this file since 20251 was 20251, checked in by nikrou, 11 years ago

Mise à jour année du copyright

File size: 1.9 KB
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | User Tags  - a plugin for Piwigo                                      |
4// +-----------------------------------------------------------------------+
5// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  |
6// +-----------------------------------------------------------------------+
7// | This program is free software; you can redistribute it and/or modify  |
8// | it under the terms of the GNU General Public License version 2 as     |
9// | published by the Free Software Foundation                             |
10// |                                                                       |
11// | This program is distributed in the hope that it will be useful, but   |
12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
14// | General Public License for more details.                              |
15// |                                                                       |
16// | You should have received a copy of the GNU General Public License     |
17// | along with this program; if not, write to the Free Software           |
18// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            |
19// | MA 02110-1301 USA.                                                    |
20// +-----------------------------------------------------------------------+
21
22if (!defined('PHPWG_ROOT_PATH')) {
23  die('Hacking attempt!');
24}
25
26$public_content = new t4u_Content($plugin_config);
27add_event_handler('render_element_content', 
28                  array($public_content, 'render_element_content'),
29                  EVENT_HANDLER_PRIORITY_NEUTRAL,
30                  2
31                  );
32
33$t4u_ws = new t4u_Ws();
34add_event_handler('ws_add_methods', 
35                  array($t4u_ws, 'addMethods')
36                  );
37?>
Note: See TracBrowser for help on using the repository browser.