[3396] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: LMT |
---|
| 4 | Version: 1.0.1 |
---|
| 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 | | | | |
---|
| 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 | |
---|
| 48 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | define('LMT_DIR' , basename(dirname(__FILE__))); |
---|
| 52 | define('LMT_PATH' , PHPWG_PLUGINS_PATH . LMT_DIR . '/'); |
---|
| 53 | |
---|
| 54 | define('LMT_VERSION' , '1.0.1'); // => ne pas oublier la version dans l'entête !! |
---|
| 55 | |
---|
| 56 | global $prefixeTable; |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | if(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 | } |
---|
| 66 | else |
---|
| 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 | |
---|
| 73 | set_plugin_data($plugin['id'], $obj); |
---|
| 74 | |
---|
| 75 | ?> |
---|