1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Batch Manager, Photo Description |
---|
4 | Version: auto |
---|
5 | Description: Batch Manager, Add Prefilter with / with no description and add action on description |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=695 |
---|
7 | Author: ddtddt |
---|
8 | Author URI: http://temmii.com/piwigo/ |
---|
9 | */ |
---|
10 | |
---|
11 | // +-----------------------------------------------------------------------+ |
---|
12 | // | Batch Manager, Photo Description by plugin for Piwigo by TEMMII | |
---|
13 | // +-----------------------------------------------------------------------+ |
---|
14 | // | Copyright(C) 2013-2020 ddtddt http://temmii.com/piwigo/ | |
---|
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 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
32 | |
---|
33 | global $prefixeTable, $template; |
---|
34 | |
---|
35 | define('BMPD_DIR' , basename(dirname(__FILE__))); |
---|
36 | define('BMPD_PATH' , PHPWG_PLUGINS_PATH . BMPD_DIR . '/'); |
---|
37 | |
---|
38 | add_event_handler('loading_lang', 'batch_manager_photo_description_loading_lang'); |
---|
39 | function batch_manager_photo_description_loading_lang(){ |
---|
40 | load_language('plugin.lang', BMPD_PATH); |
---|
41 | } |
---|
42 | |
---|
43 | // Plugin for admin |
---|
44 | if (script_basename() == 'admin'){ |
---|
45 | include_once(dirname(__FILE__).'/initadmin.php'); |
---|
46 | } |
---|
47 | |
---|
48 | ?> |
---|