source: extensions/read_metadata/main.inc.php @ 31894

Last change on this file since 31894 was 31747, checked in by ddtddt, 8 years ago

[extensions] - read_metadata - select photo in liste

File size: 2.2 KB
RevLine 
[31550]1<?php
2/*
3Plugin Name: Read Metadata
4Version: auto
5Description: Read metadata in piwigo photo
[31551]6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=829
[31550]7Author: ddtddt
8Author URI: http://temmii.com/piwigo/
9*/
10
11// +-----------------------------------------------------------------------+
[31551]12// | Read Metadata                                                         |
[31550]13// +-----------------------------------------------------------------------+
[31747]14// | Copyright(C) 2016-2017 ddtddt               http://temmii.com/piwigo/ |
[31550]15// +-----------------------------------------------------------------------+
16// | This program is free software; you can redistribute it and/or modify  |
17// | it under the terms of the GNU General Public License as published by  |
18// | the Free Software Foundation                                          |
19// |                                                                       |
20// | This program is distributed in the hope that it will be useful, but   |
21// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
22// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
23// | General Public License for more details.                              |
24// |                                                                       |
25// | You should have received a copy of the GNU General Public License     |
26// | along with this program; if not, write to the Free Software           |
27// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
28// | USA.                                                                  |
29// +-----------------------------------------------------------------------+
30
31
32if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
33
34global $prefixeTable;
35
36define('READ_METADATA_DIR' , basename(dirname(__FILE__)));
37define('READ_METADATA_PATH' , PHPWG_PLUGINS_PATH . READ_METADATA_DIR . '/');
38define('READ_METADATA_ADMIN',get_root_url().'admin.php?page=plugin-'.READ_METADATA_DIR);
39
40add_event_handler('loading_lang', 'read_metadata_loading_lang');         
41function read_metadata_loading_lang(){
42  load_language('plugin.lang', READ_METADATA_PATH);
43}
44
45  // Plugin for admin
46if (script_basename() == 'admin')   
47{
48  include_once(dirname(__FILE__).'/initadmin.php');
49}
50
51?>
Note: See TracBrowser for help on using the repository browser.