1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Advanced Menu Manager |
---|
4 | Version: 2.0 |
---|
5 | Description: Gestion avancée du menu / Advanced management of menu |
---|
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@grum.dnsalias.com |
---|
15 | website : http://photos.grum.dnsalias.com |
---|
16 | PWG user : http://forum.phpwebgallery.net/profile.php?id=3706 |
---|
17 | |
---|
18 | << May the Little SpaceFrog be with you ! >> |
---|
19 | -------------------------------------------------------------------------------- |
---|
20 | |
---|
21 | :: HISTORY |
---|
22 | |
---|
23 | 1.0.0 - 27/07/08 - |
---|
24 | |
---|
25 | :: TO DO |
---|
26 | |
---|
27 | -------------------------------------------------------------------------------- |
---|
28 | |
---|
29 | :: NFO |
---|
30 | AMM_AIM : classe to manage plugin integration into plugin menu |
---|
31 | AMM_AIP : classe to manage plugin admin pages |
---|
32 | AMM_PIP : classe to manage plugin public integration |
---|
33 | |
---|
34 | -------------------------------------------------------------------------------- |
---|
35 | */ |
---|
36 | |
---|
37 | // pour faciliter le debug :o) |
---|
38 | ini_set('error_reporting', E_ALL); |
---|
39 | ini_set('display_errors', true); |
---|
40 | |
---|
41 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
42 | |
---|
43 | define('AMM_DIR' , basename(dirname(__FILE__))); |
---|
44 | define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/'); |
---|
45 | |
---|
46 | define('AMM_VERSION' , '1.0.0'); // => ne pas oublier la version dans l'entête !! |
---|
47 | |
---|
48 | global $prefixeTable; |
---|
49 | |
---|
50 | if(defined('IN_ADMIN')) |
---|
51 | { |
---|
52 | //AMM admin part loaded and active only if in admin page |
---|
53 | include_once("amm_aim.class.inc.php"); |
---|
54 | |
---|
55 | $obj = new AMM_AIM($prefixeTable, __FILE__); |
---|
56 | $obj->init_events(); |
---|
57 | set_plugin_data($plugin['id'], $obj); |
---|
58 | } |
---|
59 | else |
---|
60 | { |
---|
61 | //AMM public part loaded and active only if in admin page |
---|
62 | include_once("amm_pip.class.inc.php"); |
---|
63 | |
---|
64 | $obj = new AMM_PIP($prefixeTable, __FILE__); |
---|
65 | set_plugin_data($plugin['id'], $obj); |
---|
66 | } |
---|
67 | |
---|
68 | ?> |
---|