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

Last change on this file since 15185 was 11342, checked in by grum, 13 years ago

fix feature:2333 - add CC0 and PD licenses

  • Property svn:executable set to *
File size: 4.7 KB
RevLine 
[3396]1<?php
2/*
3Plugin Name: LMT
[11342]4Version: 1.3.1
[3396]5Description: Appliquer une licence sur ses photos / Apply a licence on photos
[10974]6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=282
[3396]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
[5802]25|         |            |
[4396]26| 1.0.1   | 2009/05/01 | * modify de style for 80x15&text logo (to be centered
[3396]27|         |            |   like the 88x31 logo)
28|         |            | * modify the footer (allows to use html markup)
[5802]29|         |            |
[3412]30| 1.0.2   | 2009/06/12 | * the plugin can't manage picture if no physical category
31|         |            |   is affected (pictures uploaded with pLoader have
[4396]32|         |            |   only virtual categories). For now, use a LEFT OUTER JOIN
[3412]33|         |            |   on physical categorie ; virtual category management will
34|         |            |   be coded for the next release
[5802]35|         |            |
[4396]36| 1.0.3   | 2009/07/24 | * bug on "list" page when trying to add items in the
[3666]37|         |            |   caddie (==> topic #116263 on french forum)
[4396]38|         |            | * bug when displaying image's categories when image
[3666]39|         |            |   only have virtual categories / now display all image
[4396]40|         |            |   categories (physical & virtual)
41|         |            |   (==>topic #113337 on french forum)
[5802]42|         |            |
[4396]43| 1.1.0   | 2009/11/29 | * mantis : feature 1294
44|         |            |   Allow to open the licence page on a new page/tab when
45|         |            |   user clic on the licence hyperlink
46|         |            | * mantis : feature 1295
47|         |            |   Compatibility with theme 'montblanc'
[5802]48|         |            |
[5431]49| 1.2.0   | 2010/03/28 | * compatibility with Piwigo 2.1
[4396]50|         |            |
[5802]51| 1.2.1   | 2010/04/11 | * Fixed a minor bug in the display
[4396]52|         |            |
[6272]53| 1.2.2   | 2010/05/22 | * mantis : bug 1670
54|         |            |   . Call undefined function in file lmt_aip.class.php
55|         |            |     on line 720
[4396]56|         |            |
[10974]57| 1.3.0   | 2011/05/21 | * mantis : feature 1439
[6701]58|         |            |   . Add an "ALT" property to the licence picture
59|         |            |     => the "TITLE" property was also added
60|         |            | * mantis : feature 1690
61|         |            |   . Improve performances in admin page
[6703]62|         |            | * mantis : bug 1699
63|         |            |   . slashes should be stripped when displaying author
64|         |            |     names
[11342]65|         |            | * mantis feature:2150
[10974]66|         |            |   . compatibility with piwigo 2.2
67|         |            | * mantis bug:1689
68|         |            |   . Add possibility to search picture by licence
[4396]69|         |            |
[11342]70| 1.3.1   | 2011/06/13 | * mantis : feature 2333
71|         |            |   . Add the Public Domain licence.
[4396]72|         |            |
[11342]73|         |            |
74|         |            |
75|         |            |
[3396]76
[4396]77
[11342]78
79
80
[3396]81:: TO DO
82
83--------------------------------------------------------------------------------
84
85:: NFO
86  LMT_root : common classe for admin and public classes
87  LMT_AIM  : classe to manage plugin integration into plugin menu
88  LMT_AIP  : classe to manage plugin admin pages
89  LMT_PIP  : classe to manage plugin public pages
90
91--------------------------------------------------------------------------------
92*/
93
94// pour faciliter le debug :o)
95 //ini_set('error_reporting', E_ALL);
96 //ini_set('display_errors', true);
97
98if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
99
100
101define('LMT_DIR' , basename(dirname(__FILE__)));
102define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/');
103
[11032]104include_once(PHPWG_PLUGINS_PATH.'GrumPluginClasses/classes/CommonPlugin.class.inc.php');
[5548]105include_once('lmt_version.inc.php'); // => Don't forget to update this file !!
[3396]106
107global $prefixeTable;
108
109if(defined('IN_ADMIN'))
110{
111  //LMT admin interface loaded and active only if in admin page
112  include_once("lmt_aim.class.inc.php");
113  $obj=new LMT_AIM($prefixeTable, __FILE__);
[5548]114  $obj->initEvents();
[3396]115}
116else
117{
118  //LMT public interface loaded and active only if in public page
[7560]119  if(CommonPlugin::checkGPCRelease(LMT_GPC_NEEDED))
120  {
121    //LMT public interface loaded and active only if in public page
122    include_once("lmt_pip.class.inc.php");
123    $obj=new LMT_PIP($prefixeTable, __FILE__);
124  }
[3396]125}
126
127set_plugin_data($plugin['id'], $obj);
128
[3412]129?>
Note: See TracBrowser for help on using the repository browser.