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

Last change on this file since 18780 was 17604, checked in by grum, 12 years ago

bug:2726

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