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

Last change on this file since 3683 was 3683, checked in by grum, 15 years ago

Update AMM 2.1.0 - big resolved
Bug referenced in french forum (post:107877 a topic:14374)

  • Property svn:executable set to *
File size: 2.6 KB
Line 
1<?php
2/*
3Plugin Name: Advanced Menu Manager
4Version: 2.1.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.fr
15    website  : http://photos.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 for
31|         |            |   a user (permission + level)
32|         |            |   (cf. post:107877 on french forum)
33|         |            |   (cf. topic:14374 on french forum)
34|         |            |
35|         |            |
36|         |            |
37|         |            |
38|         |            |
39
40
41:: TO DO
42
43--------------------------------------------------------------------------------
44
45:: NFO
46  AMM_AIM : classe to manage plugin integration into plugin menu
47  AMM_AIP : classe to manage plugin admin pages
48  AMM_PIP : classe to manage plugin public integration
49
50--------------------------------------------------------------------------------
51*/
52
53// pour faciliter le debug - make debug easier :o)
54//ini_set('error_reporting', E_ALL);
55//ini_set('display_errors', true);
56
57if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
58
59define('AMM_DIR' , basename(dirname(__FILE__)));
60define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
61
62define('AMM_VERSION' , '2.1.0'); // => ne pas oublier la version dans l'entête !!
63
64global $prefixeTable, $page;
65
66
67if(defined('IN_ADMIN'))
68{
69  //AMM admin part loaded and active only if in admin page
70  include_once("amm_aim.class.inc.php");
71  $obj = new AMM_AIM($prefixeTable, __FILE__);
72  $obj->init_events();
73  set_plugin_data($plugin['id'], $obj);
74}
75else
76{
77  //AMM public part loaded and active only if in public page
78  include_once("amm_pip.class.inc.php");
79  $obj = new AMM_PIP($prefixeTable, __FILE__);
80  set_plugin_data($plugin['id'], $obj);
81}
82
83
84?>
Note: See TracBrowser for help on using the repository browser.