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

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

feature:1777

  • Weight of the metadata database can becomes very heavy
  • Property svn:executable set to *
File size: 4.0 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|         |            | * mantis : feature 1777
59|         |            |   . Weight of the metadata database can becomes very
60|         |            |     heavy
61|         |            | * ajax management was entirely rewritted
62|         |            | * user interface reviewed
63|         |            |
64|         |            |
65|         |            |
66|         |            |
67|         |            |
68|         |            |
69|         |            |
70
71
72:: TO DO
73
74--------------------------------------------------------------------------------
75
76:: NFO
77  AMD_AIM : classe to manage plugin integration into plugin menu
78  AMD_AIP : classe to manage plugin admin pages
79  AMD_PIP : classe to manage plugin public integration
80
81--------------------------------------------------------------------------------
82*/
83
84// pour faciliter le debug - make debug easier :o)
85// ini_set('error_reporting', E_ALL);
86// ini_set('display_errors', true);
87
88if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
89
90define('AMD_DIR' , basename(dirname(__FILE__)));
91define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/');
92
93include_once('amd_version.inc.php'); // => Don't forget to update this file !!
94
95global $prefixeTable, $page;
96
97
98if(defined('IN_ADMIN'))
99{
100  //AMD admin part loaded and active only if in admin page
101  include_once("amd_aim.class.inc.php");
102  $obj = new AMD_AIM($prefixeTable, __FILE__);
103  $obj->initEvents();
104  set_plugin_data($plugin['id'], $obj);
105}
106else
107{
108  //AMD public part loaded and active only if in public page
109  include_once("amd_pip.class.inc.php");
110  $obj = new AMD_PIP($prefixeTable, __FILE__);
111  set_plugin_data($plugin['id'], $obj);
112}
113
114
115?>
Note: See TracBrowser for help on using the repository browser.