1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: LMT |
---|
4 | Version: 1.3.0 |
---|
5 | Description: Appliquer une licence sur ses photos / Apply a licence on photos |
---|
6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=282 |
---|
7 | Author: grum@piwigo.org |
---|
8 | Author 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 | | | | |
---|
26 | | 1.0.1 | 2009/05/01 | * modify de style for 80x15&text logo (to be centered |
---|
27 | | | | like the 88x31 logo) |
---|
28 | | | | * modify the footer (allows to use html markup) |
---|
29 | | | | |
---|
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 |
---|
32 | | | | only virtual categories). For now, use a LEFT OUTER JOIN |
---|
33 | | | | on physical categorie ; virtual category management will |
---|
34 | | | | be coded for the next release |
---|
35 | | | | |
---|
36 | | 1.0.3 | 2009/07/24 | * bug on "list" page when trying to add items in the |
---|
37 | | | | caddie (==> topic #116263 on french forum) |
---|
38 | | | | * bug when displaying image's categories when image |
---|
39 | | | | only have virtual categories / now display all image |
---|
40 | | | | categories (physical & virtual) |
---|
41 | | | | (==>topic #113337 on french forum) |
---|
42 | | | | |
---|
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' |
---|
48 | | | | |
---|
49 | | 1.2.0 | 2010/03/28 | * compatibility with Piwigo 2.1 |
---|
50 | | | | |
---|
51 | | 1.2.1 | 2010/04/11 | * Fixed a minor bug in the display |
---|
52 | | | | |
---|
53 | | 1.2.2 | 2010/05/22 | * mantis : bug 1670 |
---|
54 | | | | . Call undefined function in file lmt_aip.class.php |
---|
55 | | | | on line 720 |
---|
56 | | | | |
---|
57 | | 1.2.3 | 2010/07/24 | * mantis : feature 1439 |
---|
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 |
---|
62 | | | | * mantis : bug 1699 |
---|
63 | | | | . slashes should be stripped when displaying author |
---|
64 | | | | names |
---|
65 | | | | |
---|
66 | | | | |
---|
67 | | | | |
---|
68 | | | | |
---|
69 | | | | |
---|
70 | | | | |
---|
71 | |
---|
72 | |
---|
73 | :: TO DO |
---|
74 | |
---|
75 | -------------------------------------------------------------------------------- |
---|
76 | |
---|
77 | :: NFO |
---|
78 | LMT_root : common classe for admin and public classes |
---|
79 | LMT_AIM : classe to manage plugin integration into plugin menu |
---|
80 | LMT_AIP : classe to manage plugin admin pages |
---|
81 | LMT_PIP : classe to manage plugin public pages |
---|
82 | |
---|
83 | -------------------------------------------------------------------------------- |
---|
84 | */ |
---|
85 | |
---|
86 | // pour faciliter le debug :o) |
---|
87 | //ini_set('error_reporting', E_ALL); |
---|
88 | //ini_set('display_errors', true); |
---|
89 | |
---|
90 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
91 | |
---|
92 | |
---|
93 | define('LMT_DIR' , basename(dirname(__FILE__))); |
---|
94 | define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/'); |
---|
95 | |
---|
96 | include_once('lmt_version.inc.php'); // => Don't forget to update this file !! |
---|
97 | |
---|
98 | global $prefixeTable; |
---|
99 | |
---|
100 | if(defined('IN_ADMIN')) |
---|
101 | { |
---|
102 | //LMT admin interface loaded and active only if in admin page |
---|
103 | include_once("lmt_aim.class.inc.php"); |
---|
104 | $obj=new LMT_AIM($prefixeTable, __FILE__); |
---|
105 | $obj->initEvents(); |
---|
106 | } |
---|
107 | else |
---|
108 | { |
---|
109 | //LMT public interface loaded and active only if in public page |
---|
110 | if(CommonPlugin::checkGPCRelease(LMT_GPC_NEEDED)) |
---|
111 | { |
---|
112 | //LMT public interface loaded and active only if in public page |
---|
113 | include_once("lmt_pip.class.inc.php"); |
---|
114 | $obj=new LMT_PIP($prefixeTable, __FILE__); |
---|
115 | } |
---|
116 | } |
---|
117 | |
---|
118 | set_plugin_data($plugin['id'], $obj); |
---|
119 | |
---|
120 | ?> |
---|