source: tags/build-Butterfly02/plugins/AMenuManager/main.inc.php @ 23727

Last change on this file since 23727 was 2488, checked in by rvelices, 16 years ago
  • based on test_menu by grum (thanks to you) - integration of dynamic menu bar to pwg
  • the menubar is composed now of dynamic blocks that can be ordered/hidden
  • plugins can add their own blocks
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1<?php
2/*
3Plugin Name: Advanced Menu Manager
4Version: 1.0.0
5Description: Gestion avancée du menu / Advanced management of menu
6Plugin 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
211.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)
36ini_set('error_reporting', E_ALL);
37ini_set('display_errors', true);
38
39if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
40
41define('AMM_DIR' , basename(dirname(__FILE__)));
42define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
43
44define('AMM_VERSION' , '1.0.0'); // => ne pas oublier la version dans l'entête !!
45
46global $prefixeTable;
47
48if(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}
57else
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?>
Note: See TracBrowser for help on using the repository browser.