source: extensions/AMenuManager/main.inc.php @ 4389

Last change on this file since 4389 was 4389, checked in by grum, 14 years ago

[AMM] Users need to give a visibilty level for each menu items - mantis feature 1278

  • Property svn:executable set to *
File size: 4.0 KB
Line 
1<?php
2/*
3Plugin Name: Advanced Menu Manager
4Version: 2.1.3
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.fr
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| 2.0.0b  | 2008/07/27 | * initial release with own blocks classes
25| 2.0.0   | 2008/10/23 | * first release for piwigo's blocks classes
26| 2.1.0   | 2009/07/26 | * add a functionality : random image can be changed
27|         |            |   every x seconds (from 0.5 to 60)
28|         |            | * bug resolved : random image block is displayed only
29|         |            |   if user have accessibility to more than 0 images
30|         |            |   random images are choosen in the accessible images
31|         |            |   for a user (permission + level)
32|         |            |   (cf. post:107877 on french forum)
33|         |            |   (cf. topic:14374 on french forum)
34| 2.1.1   | 2009/07/27 | * random picture is preloaded before the first ajax
35|         |            |   call assuming the display of a thumbnail even if
36|         |            |   javascript is disabled on the browser
37|         |            |   (cf. post:116807 on french forum)
38|         |            | * give the possibility to choose between an automatic
39|         |            |   and a fixed height for the block menu
40|         |            |   (cf. post:116804 on french forum)
41|         |            | * compatibility with Sylvia theme
42|         |            |   (cf. post:116800 on french forum)
43| 2.1.2   | 2009/11/16 | * adding new translations
44|         |            |    - es_ES
45|         |            |    - hu_HU (thx to sámli)
46| 2.1.3   | 2009/11/24 | * mantis: feature 1285
47|         |            |   move the js for "random image" in the the footer
48|         |            |   (having the js inside the <dl> tag was not w3c
49|         |            |   compliant)
50|         |            | * mantis: feature 1132
51|         |            |   Allowing order management for items in Piwigo's core
52|         |            |   blocks
53|         |            | * mantis: feature 1133
54|         |            |   Allowing to group content from Piwigo's core blocks
55|         |            | * mantis: feature 1278
56|         |            |   Allowing to manage access to menu items with a right
57|         |            |   management system
58|         |            |
59|         |            |
60|         |            |
61|         |            |
62|         |            |
63|         |            |
64|         |            |
65|         |            |
66
67
68:: TO DO
69
70--------------------------------------------------------------------------------
71
72:: NFO
73  AMM_AIM : classe to manage plugin integration into plugin menu
74  AMM_AIP : classe to manage plugin admin pages
75  AMM_PIP : classe to manage plugin public integration
76
77--------------------------------------------------------------------------------
78*/
79
80// pour faciliter le debug - make debug easier :o)
81//ini_set('error_reporting', E_ALL);
82//ini_set('display_errors', true);
83
84if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
85
86define('AMM_DIR' , basename(dirname(__FILE__)));
87define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
88
89define('AMM_VERSION' , '2.1.3'); //=> ne pas oublier la version dans l'entête !!
90
91global $prefixeTable, $page;
92
93
94if(defined('IN_ADMIN'))
95{
96  //AMM admin part loaded and active only if in admin page
97  include_once("amm_aim.class.inc.php");
98  $obj = new AMM_AIM($prefixeTable, __FILE__);
99  $obj->init_events();
100  set_plugin_data($plugin['id'], $obj);
101}
102else
103{
104  //AMM public part loaded and active only if in public page
105  include_once("amm_pip.class.inc.php");
106  $obj = new AMM_PIP($prefixeTable, __FILE__);
107  set_plugin_data($plugin['id'], $obj);
108}
109
110
111?>
Note: See TracBrowser for help on using the repository browser.