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

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

Update plugin for Piwigo 2.1

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