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

Last change on this file since 6442 was 6232, checked in by grum, 15 years ago

Update version to 0.4

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1<?php
2/*
3Plugin Name: Advanced MetaData
4Version: 0.4
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     | 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|         |            |
40
41
42:: TO DO
43
44--------------------------------------------------------------------------------
45
46:: NFO
47  AMD_AIM : classe to manage plugin integration into plugin menu
48  AMD_AIP : classe to manage plugin admin pages
49  AMD_PIP : classe to manage plugin public integration
50
51--------------------------------------------------------------------------------
52*/
53
54// pour faciliter le debug - make debug easier :o)
55// ini_set('error_reporting', E_ALL);
56// ini_set('display_errors', true);
57
58if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
59
60define('AMD_DIR' , basename(dirname(__FILE__)));
61define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/');
62
63include_once('amd_version.inc.php'); // => Don't forget to update this file !!
64
65global $prefixeTable, $page;
66
67
68if(defined('IN_ADMIN'))
69{
70  //AMD admin part loaded and active only if in admin page
71  include_once("amd_aim.class.inc.php");
72  $obj = new AMD_AIM($prefixeTable, __FILE__);
73  $obj->initEvents();
74  set_plugin_data($plugin['id'], $obj);
75}
76else
77{
78  //AMD public part loaded and active only if in public page
79  include_once("amd_pip.class.inc.php");
80  $obj = new AMD_PIP($prefixeTable, __FILE__);
81  set_plugin_data($plugin['id'], $obj);
82}
83
84
85?>
Note: See TracBrowser for help on using the repository browser.