source: extensions/AMetaData/main.inc.php @ 6919

Last change on this file since 6919 was 6919, checked in by grum, 14 years ago

Implement basic/advanced modes, release 0.5.1
bug:1857

  • Property svn:executable set to *
File size: 5.5 KB
RevLine 
[4905]1<?php
2/*
3Plugin Name: Advanced MetaData
[6722]4Version: 0.5.0
[4905]5Description: An advanced metadata manager
[5935]6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=364
7Author: grum@piwigo.org
8Author URI: http://photos.grum.fr/
[4905]9*/
10
11/*
12--------------------------------------------------------------------------------
13  Author     : Grum
14    email    : grum@piwigo.org
15    website  : http://photos.grum.fr
16    PWG user : http://forum.piwigo.org/profile.php?id=3706
17
18    << May the Little SpaceFrog be with you ! >>
19--------------------------------------------------------------------------------
20
21:: HISTORY
22
23| release | date       |
[5227]24| 0.0     | 2010/01/21 | * start coding
[5959]25|         |            |
[5227]26| 0.1b    | 2010/03/21 | * beta release
[5959]27|         |            |
[5791]28| 0.2b    | 2010/03/23 | * beta release
[5959]29|         |            |
[5791]30| 0.3b    | 2010/04/11 | * beta release
[4905]31|         |            |
[6722]32| 0.4.0   | 2010/04/24 | * release for Piwigo 2.1
[5959]33|         |            | * uses some GPC 3.1.0 functions
34|         |            | * optimize ajax request to fill the metadata database
35|         |            | * replace all the 'mysql_*' functions with 'pwg_db_*'
36|         |            |   functions
37|         |            | * update some html/css
[4905]38|         |            |
[6891]39| 0.5.0   | 2010/07/24 | * release 0.5.0 not published, features are reported in
40|         |            |   the release 0.5.1
41|         |            |
42| 0.5.1   | 2010/09/12 | * update to the JpegMetadata class 1.0.1 to fix the
[6722]43|         |            |   mantis bugs&features 1686, 1718 and 1719
44|         |            | * mantis : bug 1686
45|         |            |   . Picture analysis finish with an Error 500 or with a
46|         |            |     problem of memory limit
47|         |            | * mantis : feature 1719
48|         |            |   . Coding a DateTime class
49|         |            | * mantis : feature 1718
50|         |            |   . Make test images lighter
51|         |            |     The weight of tests images provided with the
52|         |            |     JpegMetadata class was to heavy ; the file size has
53|         |            |     been reduced from 9Mb to 230Kb
54|         |            | * mantis : feature 1688
55|         |            |   . Improve performance when the database is filled
56|         |            |     each time a page is displayed (now using an ajax
57|         |            |     call)
58|         |            | * mantis : feature 1692
59|         |            |   . Add possibility for user to build their own "magic"
60|         |            |     tags
[6729]61|         |            | * mantis : feature 1777
62|         |            |   . Weight of the metadata database can becomes very
63|         |            |     heavy
[6891]64|         |            | * mantis : feature 1691
65|         |            |   . Add possibility to search picture by metadata
66|         |            |     properties
67|         |            | * mantis : feature 1846
68|         |            |   . Read the metadata in the HD picture
[6919]69|         |            | * mantis : feature 1857
70|         |            |   . Implement a basic and an advanced interface mode
[6891]71|         |            | * ajax management entirely rewritted
[6722]72|         |            | * user interface reviewed
[6891]73|         |            | * add some triggers events when picture metadata are
74|         |            |   loaded in the picture.php page
75|         |            |   . amd_jpegMD_loaded
76|         |            |   . amd_jpegMD_userDefinedValues_built
[4905]77|         |            |
[6722]78|         |            |
79|         |            |
80|         |            |
81|         |            |
82|         |            |
83|         |            |
[6891]84|         |            |
85|         |            |
86|         |            |
87|         |            |
88|         |            |
[4905]89
90
91:: TO DO
92
93--------------------------------------------------------------------------------
[6891]94*
95* :: NFO
96* AMD_AIM : classe to manage plugin integration into plugin menu
97* AMD_AIP : classe to manage plugin admin pages
98* AMD_PIP : classe to manage plugin public integration
99*
100*
101* :: Triggers & data provided
102* - amd_jpegMD_loaded
103*   . triggered on the picture.php page, when metadata were loaded from the
104*     picture file
105*   . the JpegMetadata object is provided as data to the callback function
106*
107* - amd_jpegMD_userDefinedValues_built
108*   . triggered on the picture.php page, when metadata were loaded from the
109*     picture file and user defined tags were built
110*   . an array is provided as data to the callback function
111*       $data['picture'] : an array of (tagId => value) with only the selected
112*                          metadata
113*       $data['user']    : an array of (tagId => value) with only the user
114*                          defined metadata built
115*
116*
[4905]117--------------------------------------------------------------------------------
118*/
119
120// pour faciliter le debug - make debug easier :o)
[5935]121// ini_set('error_reporting', E_ALL);
122// ini_set('display_errors', true);
[4905]123
124if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
125
126define('AMD_DIR' , basename(dirname(__FILE__)));
127define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/');
128
[5935]129include_once('amd_version.inc.php'); // => Don't forget to update this file !!
[4905]130
131global $prefixeTable, $page;
132
133
134if(defined('IN_ADMIN'))
135{
136  //AMD admin part loaded and active only if in admin page
137  include_once("amd_aim.class.inc.php");
138  $obj = new AMD_AIM($prefixeTable, __FILE__);
[5935]139  $obj->initEvents();
[4905]140  set_plugin_data($plugin['id'], $obj);
141}
142else
143{
144  //AMD public part loaded and active only if in public page
145  include_once("amd_pip.class.inc.php");
146  $obj = new AMD_PIP($prefixeTable, __FILE__);
147  set_plugin_data($plugin['id'], $obj);
148}
149
150
151?>
Note: See TracBrowser for help on using the repository browser.