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

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

Implement metadata search, release 0.5.1
bug:1846, bug:1691

  • Property svn:executable set to *
File size: 5.4 KB
Line 
1<?php
2/*
3Plugin Name: Advanced MetaData
4Version: 0.5.0
5Description: An advanced metadata manager
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=364
7Author: grum@piwigo.org
8Author URI: http://photos.grum.fr/
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       |
24| 0.0     | 2010/01/21 | * start coding
25|         |            |
26| 0.1b    | 2010/03/21 | * beta release
27|         |            |
28| 0.2b    | 2010/03/23 | * beta release
29|         |            |
30| 0.3b    | 2010/04/11 | * beta release
31|         |            |
32| 0.4.0   | 2010/04/24 | * release for Piwigo 2.1
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
38|         |            |
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
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
61|         |            | * mantis : feature 1777
62|         |            |   . Weight of the metadata database can becomes very
63|         |            |     heavy
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
69|         |            | * ajax management entirely rewritted
70|         |            | * user interface reviewed
71|         |            | * add some triggers events when picture metadata are
72|         |            |   loaded in the picture.php page
73|         |            |   . amd_jpegMD_loaded
74|         |            |   . amd_jpegMD_userDefinedValues_built
75|         |            |
76|         |            |
77|         |            |
78|         |            |
79|         |            |
80|         |            |
81|         |            |
82|         |            |
83|         |            |
84|         |            |
85|         |            |
86|         |            |
87
88
89:: TO DO
90
91--------------------------------------------------------------------------------
92*
93* :: NFO
94* AMD_AIM : classe to manage plugin integration into plugin menu
95* AMD_AIP : classe to manage plugin admin pages
96* AMD_PIP : classe to manage plugin public integration
97*
98*
99* :: Triggers & data provided
100* - amd_jpegMD_loaded
101*   . triggered on the picture.php page, when metadata were loaded from the
102*     picture file
103*   . the JpegMetadata object is provided as data to the callback function
104*
105* - amd_jpegMD_userDefinedValues_built
106*   . triggered on the picture.php page, when metadata were loaded from the
107*     picture file and user defined tags were built
108*   . an array is provided as data to the callback function
109*       $data['picture'] : an array of (tagId => value) with only the selected
110*                          metadata
111*       $data['user']    : an array of (tagId => value) with only the user
112*                          defined metadata built
113*
114*
115--------------------------------------------------------------------------------
116*/
117
118// pour faciliter le debug - make debug easier :o)
119// ini_set('error_reporting', E_ALL);
120// ini_set('display_errors', true);
121
122if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
123
124define('AMD_DIR' , basename(dirname(__FILE__)));
125define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/');
126
127include_once('amd_version.inc.php'); // => Don't forget to update this file !!
128
129global $prefixeTable, $page;
130
131
132if(defined('IN_ADMIN'))
133{
134  //AMD admin part loaded and active only if in admin page
135  include_once("amd_aim.class.inc.php");
136  $obj = new AMD_AIM($prefixeTable, __FILE__);
137  $obj->initEvents();
138  set_plugin_data($plugin['id'], $obj);
139}
140else
141{
142  //AMD public part loaded and active only if in public page
143  include_once("amd_pip.class.inc.php");
144  $obj = new AMD_PIP($prefixeTable, __FILE__);
145  set_plugin_data($plugin['id'], $obj);
146}
147
148
149?>
Note: See TracBrowser for help on using the repository browser.