source: trunk/plugins/AMenuManager/main.inc.php @ 3282

Last change on this file since 3282 was 3282, checked in by plg, 15 years ago

change: according to topic:15067, svn:keywords property was removed

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1<?php
2/*
3Plugin Name: Advanced Menu Manager
4Version: 2.0
5Description: Gestion avancée du menu / Advanced management of menu
6Plugin URI: http://piwigo.org
7Author: Piwigo team
8Author 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
231.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)
38ini_set('error_reporting', E_ALL);
39ini_set('display_errors', true);
40
41if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
42
43define('AMM_DIR' , basename(dirname(__FILE__)));
44define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
45
46define('AMM_VERSION' , '1.0.0'); // => ne pas oublier la version dans l'entête !!
47
48global $prefixeTable;
49
50if(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}
59else
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?>
Note: See TracBrowser for help on using the repository browser.