1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: LMT |
---|
4 | Version: 1.0.2 |
---|
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 | | 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 | | | | |
---|
40 | | | | |
---|
41 | | | | |
---|
42 | |
---|
43 | |
---|
44 | :: TO DO |
---|
45 | |
---|
46 | -------------------------------------------------------------------------------- |
---|
47 | |
---|
48 | :: NFO |
---|
49 | LMT_root : common classe for admin and public classes |
---|
50 | LMT_AIM : classe to manage plugin integration into plugin menu |
---|
51 | LMT_AIP : classe to manage plugin admin pages |
---|
52 | LMT_PIP : classe to manage plugin public pages |
---|
53 | |
---|
54 | -------------------------------------------------------------------------------- |
---|
55 | */ |
---|
56 | |
---|
57 | // pour faciliter le debug :o) |
---|
58 | //ini_set('error_reporting', E_ALL); |
---|
59 | //ini_set('display_errors', true); |
---|
60 | |
---|
61 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
62 | |
---|
63 | |
---|
64 | define('LMT_DIR' , basename(dirname(__FILE__))); |
---|
65 | define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/'); |
---|
66 | |
---|
67 | define('LMT_VERSION' , '1.0.2'); // => ne pas oublier la version dans l'entête !! |
---|
68 | |
---|
69 | global $prefixeTable; |
---|
70 | |
---|
71 | |
---|
72 | if(defined('IN_ADMIN')) |
---|
73 | { |
---|
74 | //LMT admin interface loaded and active only if in admin page |
---|
75 | include_once("lmt_aim.class.inc.php"); |
---|
76 | $obj=new LMT_AIM($prefixeTable, __FILE__); |
---|
77 | $obj->init_events(); |
---|
78 | } |
---|
79 | else |
---|
80 | { |
---|
81 | //LMT public interface loaded and active only if in public page |
---|
82 | include_once("lmt_pip.class.inc.php"); |
---|
83 | $obj=new LMT_PIP($prefixeTable, __FILE__); |
---|
84 | } |
---|
85 | |
---|
86 | set_plugin_data($plugin['id'], $obj); |
---|
87 | |
---|
88 | ?> |
---|