[6798] | 1 | <?php |
---|
| 2 | // +-----------------------------------------------------------------------+ |
---|
| 3 | // | User Tags - a plugin for Piwigo | |
---|
| 4 | // +-----------------------------------------------------------------------+ |
---|
[20139] | 5 | // | Copyright(C) 2010-2013 Nicolas Roudaire http://www.nikrou.net | |
---|
[6798] | 6 | // +-----------------------------------------------------------------------+ |
---|
| 7 | // | This program is free software; you can redistribute it and/or modify | |
---|
[20251] | 8 | // | it under the terms of the GNU General Public License version 2 as | |
---|
[20139] | 9 | // | published by the Free Software Foundation | |
---|
[6798] | 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 | |
---|
| 22 | if (!defined('PHPWG_ROOT_PATH')) { |
---|
| 23 | die('Hacking attempt!'); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | $public_content = new t4u_Content($plugin_config); |
---|
| 27 | add_event_handler('render_element_content', |
---|
[20251] | 28 | array($public_content, 'render_element_content'), |
---|
| 29 | EVENT_HANDLER_PRIORITY_NEUTRAL, |
---|
| 30 | 2 |
---|
| 31 | ); |
---|
[11741] | 32 | |
---|
| 33 | $t4u_ws = new t4u_Ws(); |
---|
| 34 | add_event_handler('ws_add_methods', |
---|
[20251] | 35 | array($t4u_ws, 'addMethods') |
---|
| 36 | ); |
---|