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

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

Update release to 0.3b

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1<?php
2/*
3Plugin Name: Advanced MetaData
4Version: 0.3b
5Description: An advanced metadata manager
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=364
7Author: Piwigo team
8Author URI: http://piwigo.org
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| 0.1b    | 2010/03/21 | * beta release
26| 0.2b    | 2010/03/23 | * beta release
27| 0.3b    | 2010/04/11 | * beta release
28|         |            |
29|         |            |
30|         |            |
31|         |            |
32|         |            |
33
34
35:: TO DO
36
37--------------------------------------------------------------------------------
38
39:: NFO
40  AMD_AIM : classe to manage plugin integration into plugin menu
41  AMD_AIP : classe to manage plugin admin pages
42  AMD_PIP : classe to manage plugin public integration
43
44--------------------------------------------------------------------------------
45*/
46
47// pour faciliter le debug - make debug easier :o)
48ini_set('error_reporting', E_ALL);
49ini_set('display_errors', true);
50
51if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
52
53define('AMD_DIR' , basename(dirname(__FILE__)));
54define('AMD_PATH' , PHPWG_PLUGINS_PATH . AMD_DIR . '/');
55
56define('AMD_VERSION' , '0.3b'); //=> ne pas oublier la version dans l'entête !!
57
58global $prefixeTable, $page;
59
60
61if(defined('IN_ADMIN'))
62{
63  //AMD admin part loaded and active only if in admin page
64  include_once("amd_aim.class.inc.php");
65  $obj = new AMD_AIM($prefixeTable, __FILE__);
66  $obj->init_events();
67  set_plugin_data($plugin['id'], $obj);
68}
69else
70{
71  //AMD public part loaded and active only if in public page
72  include_once("amd_pip.class.inc.php");
73  $obj = new AMD_PIP($prefixeTable, __FILE__);
74  set_plugin_data($plugin['id'], $obj);
75}
76
77
78?>
Note: See TracBrowser for help on using the repository browser.