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

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

Add plugin LMT

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