Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: AddInfo |
---|
4 | Version: auto |
---|
5 | Description: Permet d'ajouter 3 infos sous les photos |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=461 |
---|
7 | Author: ddtddt |
---|
8 | Author URI: |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | |
---|
13 | global $prefixeTable; |
---|
14 | |
---|
15 | define('ADDINFO_DIR' , basename(dirname(__FILE__))); |
---|
16 | define('ADDINFO_PATH' , PHPWG_PLUGINS_PATH . ADDINFO_DIR . '/'); |
---|
17 | define('ADDINFO_TABLE' , $prefixeTable . 'AddInfo_images'); |
---|
18 | |
---|
19 | // Plugin on picture page |
---|
20 | if (script_basename() == 'picture') |
---|
21 | { |
---|
22 | include_once(dirname(__FILE__).'/initpicture.php'); |
---|
23 | } |
---|
24 | |
---|
25 | |
---|
26 | // Plugin for admin |
---|
27 | if (script_basename() == 'admin') |
---|
28 | { |
---|
29 | include_once(dirname(__FILE__).'/initadmin.php'); |
---|
30 | } |
---|
31 | |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.