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

Last change on this file since 3548 was 3412, checked in by grum, 15 years ago

Update LMT to release 1.0.2

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