[30631] | 1 | <?php |
---|
[31409] | 2 | /* |
---|
| 3 | Plugin Name: Manage Properties Photos |
---|
| 4 | Version: auto |
---|
| 5 | Description: Add properties on photo page and organize this |
---|
| 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=783 |
---|
| 7 | Author: ddtddt |
---|
| 8 | Author URI: http://temmii.com/piwigo/ |
---|
| 9 | */ |
---|
| 10 | |
---|
[31361] | 11 | // +-----------------------------------------------------------------------+ |
---|
| 12 | // | Manage Properties Photos plugin for Piwigo | |
---|
| 13 | // +-----------------------------------------------------------------------+ |
---|
[31409] | 14 | // | Copyright(C) 2014-2016 ddtddt http://temmii.com/piwigo/ | |
---|
[31361] | 15 | // +-----------------------------------------------------------------------+ |
---|
| 16 | // | This program is free software; you can redistribute it and/or modify | |
---|
| 17 | // | it under the terms of the GNU General Public License as published by | |
---|
| 18 | // | the Free Software Foundation | |
---|
| 19 | // | | |
---|
| 20 | // | This program is distributed in the hope that it will be useful, but | |
---|
| 21 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
| 22 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
| 23 | // | General Public License for more details. | |
---|
| 24 | // | | |
---|
| 25 | // | You should have received a copy of the GNU General Public License | |
---|
| 26 | // | along with this program; if not, write to the Free Software | |
---|
| 27 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
| 28 | // | USA. | |
---|
| 29 | // +-----------------------------------------------------------------------+ |
---|
[30631] | 30 | |
---|
[31409] | 31 | |
---|
[30631] | 32 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 33 | |
---|
[31406] | 34 | global $prefixeTable; |
---|
[30631] | 35 | |
---|
[30702] | 36 | define('ADD_PROP_PHOTO_DIR' , basename(dirname(__FILE__))); |
---|
| 37 | define('ADD_PROP_PHOTO_PATH' , PHPWG_PLUGINS_PATH . ADD_PROP_PHOTO_DIR . '/'); |
---|
| 38 | if (!defined('ADD_PROP_PHOTO_TABLE')) define('ADD_PROP_PHOTO_TABLE', $prefixeTable.'add_properties_photos'); |
---|
| 39 | if (!defined('ADD_PROP_PHOTO_DATA_TABLE')) define('ADD_PROP_PHOTO_DATA_TABLE', $prefixeTable.'add_properties_photos_data'); |
---|
| 40 | define('ADD_PROP_PHOTO_ADMIN',get_root_url().'admin.php?page=plugin-'.ADD_PROP_PHOTO_DIR); |
---|
[30631] | 41 | |
---|
[30702] | 42 | include_once(ADD_PROP_PHOTO_PATH . 'include/function.aip.inc.php'); |
---|
[30631] | 43 | |
---|
| 44 | // Plugin on picture page |
---|
| 45 | if (script_basename() == 'picture') |
---|
| 46 | { |
---|
| 47 | include_once(dirname(__FILE__).'/initpicture.php'); |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | // Plugin for admin |
---|
| 52 | if (script_basename() == 'admin') |
---|
| 53 | { |
---|
| 54 | include_once(dirname(__FILE__).'/initadmin.php'); |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | ?> |
---|