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

Last change on this file since 32563 was 32398, checked in by ddtddt, 4 years ago

[read_metadata] piwigo 11

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