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

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

Commit a first release of the plugin for piwigo using the JpegMetaData classe

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