Rev | Line | |
---|
[30631] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Manage Infos Photos |
---|
| 4 | Version: auto |
---|
| 5 | Description: Can add information on photos |
---|
[30641] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=783 |
---|
[30631] | 7 | Author: ddtddt |
---|
| 8 | Author URI: |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | |
---|
| 13 | global $prefixeTable; |
---|
| 14 | |
---|
| 15 | define('ADD_INFO_PHOTO_DIR' , basename(dirname(__FILE__))); |
---|
| 16 | define('ADD_INFO_PHOTO_PATH' , PHPWG_PLUGINS_PATH . ADD_INFO_PHOTO_DIR . '/'); |
---|
| 17 | if (!defined('ADD_INFO_PHOTO_TABLE')) define('ADD_INFO_PHOTO_TABLE', $prefixeTable.'add_Info_photos'); |
---|
| 18 | if (!defined('ADD_INFO_PHOTO_DATA_TABLE')) define('ADD_INFO_PHOTO_DATA_TABLE', $prefixeTable.'add_Info_photos_data'); |
---|
| 19 | define('ADD_INFO_PHOTO_ADMIN',get_root_url().'admin.php?page=plugin-'.ADD_INFO_PHOTO_DIR); |
---|
| 20 | |
---|
| 21 | include_once(ADD_INFO_PHOTO_PATH . 'include/function.aip.inc.php'); |
---|
| 22 | |
---|
| 23 | // Plugin on picture page |
---|
| 24 | if (script_basename() == 'picture') |
---|
| 25 | { |
---|
| 26 | include_once(dirname(__FILE__).'/initpicture.php'); |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | // Plugin for admin |
---|
| 31 | if (script_basename() == 'admin') |
---|
| 32 | { |
---|
| 33 | include_once(dirname(__FILE__).'/initadmin.php'); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.