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

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

bug:1686, feature:1718, feature:1719, feature:1688, feature:1692

  • Picture analysis finish with an Error 500 or with a problem of memory limit
  • Coding a DateTime class
  • Make JpegMetadata class tests images lighter
  • Improve performance when the database is filled
  • Add possibility for user to build their own tags
  • ajax management entirely rewritted
  • Property svn:executable set to *
File size: 3.9 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 | * update to the JpegMetadata class 1.0.1 to fix the
40|         |            |   mantis bugs&features 1686, 1718 and 1719
41|         |            | * mantis : bug 1686
42|         |            |   . Picture analysis finish with an Error 500 or with a
43|         |            |     problem of memory limit
44|         |            | * mantis : feature 1719
45|         |            |   . Coding a DateTime class
46|         |            | * mantis : feature 1718
47|         |            |   . Make test images lighter
48|         |            |     The weight of tests images provided with the
49|         |            |     JpegMetadata class was to heavy ; the file size has
50|         |            |     been reduced from 9Mb to 230Kb
51|         |            | * mantis : feature 1688
52|         |            |   . Improve performance when the database is filled
53|         |            |     each time a page is displayed (now using an ajax
54|         |            |     call)
55|         |            | * mantis : feature 1692
56|         |            |   . Add possibility for user to build their own "magic"
57|         |            |     tags
58|         |            | * ajax management was entirely rewritted
59|         |            | * user interface reviewed
60|         |            |
61|         |            |
62|         |            |
63|         |            |
64|         |            |
65|         |            |
66|         |            |
67|         |            |
68|         |            |
69
70
71:: TO DO
72
73--------------------------------------------------------------------------------
74
75:: NFO
76  AMD_AIM : classe to manage plugin integration into plugin menu
77  AMD_AIP : classe to manage plugin admin pages
78  AMD_PIP : classe to manage plugin public integration
79
80--------------------------------------------------------------------------------
81*/
82
83// pour faciliter le debug - make debug easier :o)
84// ini_set('error_reporting', E_ALL);
85// ini_set('display_errors', true);
86
87if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
88
89define('AMD_DIR' , basename(dirname(__FILE__)));
90define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/');
91
92include_once('amd_version.inc.php'); // => Don't forget to update this file !!
93
94global $prefixeTable, $page;
95
96
97if(defined('IN_ADMIN'))
98{
99  //AMD admin part loaded and active only if in admin page
100  include_once("amd_aim.class.inc.php");
101  $obj = new AMD_AIM($prefixeTable, __FILE__);
102  $obj->initEvents();
103  set_plugin_data($plugin['id'], $obj);
104}
105else
106{
107  //AMD public part loaded and active only if in public page
108  include_once("amd_pip.class.inc.php");
109  $obj = new AMD_PIP($prefixeTable, __FILE__);
110  set_plugin_data($plugin['id'], $obj);
111}
112
113
114?>
Note: See TracBrowser for help on using the repository browser.