1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Advanced MetaData |
---|
4 | Version: 0.3b |
---|
5 | Description: An advanced metadata manager |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=364 |
---|
7 | Author: Piwigo team |
---|
8 | Author URI: http://piwigo.org |
---|
9 | */ |
---|
10 | |
---|
11 | /* |
---|
12 | -------------------------------------------------------------------------------- |
---|
13 | Author : Grum |
---|
14 | email : grum@piwigo.org |
---|
15 | website : http://photos.grum.fr |
---|
16 | PWG user : http://forum.piwigo.org/profile.php?id=3706 |
---|
17 | |
---|
18 | << May the Little SpaceFrog be with you ! >> |
---|
19 | -------------------------------------------------------------------------------- |
---|
20 | |
---|
21 | :: HISTORY |
---|
22 | |
---|
23 | | release | date | |
---|
24 | | 0.0 | 2010/01/21 | * start coding |
---|
25 | | 0.1b | 2010/03/21 | * beta release |
---|
26 | | 0.2b | 2010/03/23 | * beta release |
---|
27 | | 0.3b | 2010/04/11 | * beta release |
---|
28 | | | | |
---|
29 | | | | |
---|
30 | | | | |
---|
31 | | | | |
---|
32 | | | | |
---|
33 | |
---|
34 | |
---|
35 | :: TO DO |
---|
36 | |
---|
37 | -------------------------------------------------------------------------------- |
---|
38 | |
---|
39 | :: NFO |
---|
40 | AMD_AIM : classe to manage plugin integration into plugin menu |
---|
41 | AMD_AIP : classe to manage plugin admin pages |
---|
42 | AMD_PIP : classe to manage plugin public integration |
---|
43 | |
---|
44 | -------------------------------------------------------------------------------- |
---|
45 | */ |
---|
46 | |
---|
47 | // pour faciliter le debug - make debug easier :o) |
---|
48 | ini_set('error_reporting', E_ALL); |
---|
49 | ini_set('display_errors', true); |
---|
50 | |
---|
51 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
52 | |
---|
53 | define('AMD_DIR' , basename(dirname(__FILE__))); |
---|
54 | define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/'); |
---|
55 | |
---|
56 | define('AMD_VERSION' , '0.3b'); //=> ne pas oublier la version dans l'entête !! |
---|
57 | |
---|
58 | global $prefixeTable, $page; |
---|
59 | |
---|
60 | |
---|
61 | if(defined('IN_ADMIN')) |
---|
62 | { |
---|
63 | //AMD admin part loaded and active only if in admin page |
---|
64 | include_once("amd_aim.class.inc.php"); |
---|
65 | $obj = new AMD_AIM($prefixeTable, __FILE__); |
---|
66 | $obj->init_events(); |
---|
67 | set_plugin_data($plugin['id'], $obj); |
---|
68 | } |
---|
69 | else |
---|
70 | { |
---|
71 | //AMD public part loaded and active only if in public page |
---|
72 | include_once("amd_pip.class.inc.php"); |
---|
73 | $obj = new AMD_PIP($prefixeTable, __FILE__); |
---|
74 | set_plugin_data($plugin['id'], $obj); |
---|
75 | } |
---|
76 | |
---|
77 | |
---|
78 | ?> |
---|