source: extensions/lmt/main.inc.php @ 4396

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

[LMT] feature 1294, feature 1295

  • Allow to open the licence page on a new page/tab when user clic on the licence hyperlink
  • Compatibility with theme 'montblanc'
  • Property svn:executable set to *
File size: 3.3 KB
Line 
1<?php
2/*
3Plugin Name: LMT
4Version: 1.1.0
5Description: Appliquer une licence sur ses photos / Apply a licence on photos
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=282
7Author: grum@piwigo.org
8Author URI: http://photos.grum.fr
9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.com
15    website  : http://photos.grum.fr
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
23| release | date       |
24| 1.0.0   | 2009/03/01 | first release
25| 1.0.1   | 2009/05/01 | * modify de style for 80x15&text logo (to be centered
26|         |            |   like the 88x31 logo)
27|         |            | * modify the footer (allows to use html markup)
28| 1.0.2   | 2009/06/12 | * the plugin can't manage picture if no physical category
29|         |            |   is affected (pictures uploaded with pLoader have
30|         |            |   only virtual categories). For now, use a LEFT OUTER JOIN
31|         |            |   on physical categorie ; virtual category management will
32|         |            |   be coded for the next release
33| 1.0.3   | 2009/07/24 | * bug on "list" page when trying to add items in the
34|         |            |   caddie (==> topic #116263 on french forum)
35|         |            | * bug when displaying image's categories when image
36|         |            |   only have virtual categories / now display all image
37|         |            |   categories (physical & virtual)
38|         |            |   (==>topic #113337 on french forum)
39| 1.1.0   | 2009/11/29 | * mantis : feature 1294
40|         |            |   Allow to open the licence page on a new page/tab when
41|         |            |   user clic on the licence hyperlink
42|         |            | * mantis : feature 1295
43|         |            |   Compatibility with theme 'montblanc'
44|         |            |
45|         |            |
46|         |            |
47|         |            |
48|         |            |
49|         |            |
50|         |            |
51|         |            |
52|         |            |
53
54
55:: TO DO
56
57--------------------------------------------------------------------------------
58
59:: NFO
60  LMT_root : common classe for admin and public classes
61  LMT_AIM  : classe to manage plugin integration into plugin menu
62  LMT_AIP  : classe to manage plugin admin pages
63  LMT_PIP  : classe to manage plugin public pages
64
65--------------------------------------------------------------------------------
66*/
67
68// pour faciliter le debug :o)
69 //ini_set('error_reporting', E_ALL);
70 //ini_set('display_errors', true);
71
72if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
73
74
75define('LMT_DIR' , basename(dirname(__FILE__)));
76define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/');
77
78define('LMT_VERSION' , '1.1.0'); // => ne pas oublier la version dans l'entête !!
79
80global $prefixeTable;
81
82
83if(defined('IN_ADMIN'))
84{
85  //LMT admin interface loaded and active only if in admin page
86  include_once("lmt_aim.class.inc.php");
87  $obj=new LMT_AIM($prefixeTable, __FILE__);
88  $obj->init_events();
89}
90else
91{
92  //LMT public interface loaded and active only if in public page
93  include_once("lmt_pip.class.inc.php");
94  $obj=new LMT_PIP($prefixeTable, __FILE__);
95}
96
97set_plugin_data($plugin['id'], $obj);
98
99?>
Note: See TracBrowser for help on using the repository browser.