1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Advanced MetaData |
---|
4 | Version: 0.1b |
---|
5 | Description: An advanced metadata manager |
---|
6 | Plugin URI: http://piwigo.org |
---|
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.0b | 2010/01/21 | * initial release |
---|
25 | | | | |
---|
26 | | | | |
---|
27 | | | | |
---|
28 | | | | |
---|
29 | | | | |
---|
30 | | | | |
---|
31 | | | | |
---|
32 | |
---|
33 | |
---|
34 | :: TO DO |
---|
35 | |
---|
36 | -------------------------------------------------------------------------------- |
---|
37 | |
---|
38 | :: NFO |
---|
39 | AMD_AIM : classe to manage plugin integration into plugin menu |
---|
40 | AMD_AIP : classe to manage plugin admin pages |
---|
41 | AMD_PIP : classe to manage plugin public integration |
---|
42 | |
---|
43 | -------------------------------------------------------------------------------- |
---|
44 | */ |
---|
45 | |
---|
46 | // pour faciliter le debug - make debug easier :o) |
---|
47 | ini_set('error_reporting', E_ALL); |
---|
48 | ini_set('display_errors', true); |
---|
49 | |
---|
50 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
51 | |
---|
52 | define('AMD_DIR' , basename(dirname(__FILE__))); |
---|
53 | define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/'); |
---|
54 | |
---|
55 | define('AMD_VERSION' , '0.1b'); //=> ne pas oublier la version dans l'entête !! |
---|
56 | |
---|
57 | global $prefixeTable, $page; |
---|
58 | |
---|
59 | |
---|
60 | if(defined('IN_ADMIN')) |
---|
61 | { |
---|
62 | //AMD admin part loaded and active only if in admin page |
---|
63 | include_once("amd_aim.class.inc.php"); |
---|
64 | $obj = new AMD_AIM($prefixeTable, __FILE__); |
---|
65 | $obj->init_events(); |
---|
66 | set_plugin_data($plugin['id'], $obj); |
---|
67 | } |
---|
68 | else |
---|
69 | { |
---|
70 | //AMD public part loaded and active only if in public page |
---|
71 | include_once("amd_pip.class.inc.php"); |
---|
72 | $obj = new AMD_PIP($prefixeTable, __FILE__); |
---|
73 | set_plugin_data($plugin['id'], $obj); |
---|
74 | } |
---|
75 | |
---|
76 | |
---|
77 | ?> |
---|