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

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

Update AMM 2.1.0 (langages files)

  • Property svn:executable set to *
File size: 2.2 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 of a functionality : random image can be changed
27|         |            |   every x seconds (from 0.5 to 60)
28|         |            |
29|         |            |
30|         |            |
31|         |            |
32|         |            |
33|         |            |
34
35
36:: TO DO
37
38--------------------------------------------------------------------------------
39
40:: NFO
41  AMM_AIM : classe to manage plugin integration into plugin menu
42  AMM_AIP : classe to manage plugin admin pages
43  AMM_PIP : classe to manage plugin public integration
44
45--------------------------------------------------------------------------------
46*/
47
48// pour faciliter le debug - make debug easier :o)
49//ini_set('error_reporting', E_ALL);
50//ini_set('display_errors', true);
51
52if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
53
54define('AMM_DIR' , basename(dirname(__FILE__)));
55define('AMM_PATH' , PHPWG_PLUGINS_PATH . AMM_DIR . '/');
56
57define('AMM_VERSION' , '2.1.0'); // => ne pas oublier la version dans l'entête !!
58
59global $prefixeTable, $page;
60
61
62if(defined('IN_ADMIN'))
63{
64  //AMM admin part loaded and active only if in admin page
65  include_once("amm_aim.class.inc.php");
66  $obj = new AMM_AIM($prefixeTable, __FILE__);
67  $obj->init_events();
68  set_plugin_data($plugin['id'], $obj);
69}
70else
71{
72  //AMM public part loaded and active only if in public page
73  include_once("amm_pip.class.inc.php");
74  $obj = new AMM_PIP($prefixeTable, __FILE__);
75  set_plugin_data($plugin['id'], $obj);
76}
77
78
79?>
Note: See TracBrowser for help on using the repository browser.