[6798] | 1 | <?php |
---|
| 2 | // +-----------------------------------------------------------------------+ |
---|
| 3 | // | User Tags - a plugin for Piwigo | |
---|
| 4 | // +-----------------------------------------------------------------------+ |
---|
[11081] | 5 | // | Copyright(C) 2010-2011 Nicolas Roudaire http://www.nikrou.net | |
---|
[6798] | 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 as published by | |
---|
| 9 | // | 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 | |
---|
[11741] | 22 | global $__t4u_autoload; |
---|
| 23 | $__t4u_autoload['t4u_Ws'] = T4U_PLUGIN_ROOT . '/include/t4u_ws.class.php'; |
---|
| 24 | $__t4u_autoload['t4u_Config'] = T4U_PLUGIN_ROOT . '/include/t4u_config.class.php'; |
---|
| 25 | $__t4u_autoload['t4u_Content'] = T4U_PLUGIN_ROOT . '/include/t4u_content.class.php'; |
---|
[6798] | 26 | |
---|
[11741] | 27 | |
---|
| 28 | if (function_exists('spl_autoload_register')) { |
---|
| 29 | spl_autoload_register('t4u_autoload'); |
---|
| 30 | } else { |
---|
| 31 | function __autoload($name) { |
---|
| 32 | t4u_autoload($name); |
---|
| 33 | } |
---|
[6846] | 34 | } |
---|
| 35 | |
---|
[11741] | 36 | function t4u_autoload($name) { |
---|
| 37 | global $__t4u_autoload; |
---|
[6798] | 38 | |
---|
[11741] | 39 | if (!empty($__t4u_autoload[$name])) { |
---|
| 40 | require_once $__t4u_autoload[$name]; |
---|
| 41 | } |
---|
| 42 | } |
---|