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