source: extensions/user_delete_photo/main.inc.php @ 32637

Last change on this file since 32637 was 32409, checked in by ddtddt, 4 years ago

[user_delete_photo] piwigo 11

File size: 2.5 KB
Line 
1<?php
2/*
3Plugin Name: user delete photo
4Version: auto
5Description: Users can delete their photos (option on the photo page)
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=690
7Author: ddtddt
8Author URI: http://temmii.com/piwigo/
9Has Settings: webmaster
10*/
11
12// +-----------------------------------------------------------------------+
13// | user delete photo plugin for piwigo by TEMMII                         |
14// +-----------------------------------------------------------------------+
15// | Copyright(C) 2013 - 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
32if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
33
34global $prefixeTable;
35
36define('UDP_DIR' , basename(dirname(__FILE__)));
37define('UDP_PATH' , PHPWG_PLUGINS_PATH . UDP_DIR . '/');
38define('UDP_ADMIN',get_root_url().'admin.php?page=plugin-'.UDP_DIR);
39
40add_event_handler('loading_lang', 'user_delete_photo_loading_lang');     
41function user_delete_photo_loading_lang(){
42  load_language('plugin.lang', UDP_PATH);
43}
44
45 // Plugin on picture page
46if (script_basename() == 'picture'){ 
47  include_once(dirname(__FILE__).'/initpicture.php');
48}
49
50// menu admin
51/*add_event_handler('get_admin_plugin_menu_links', 'UDP_admin_menu');
52function UDP_admin_menu($menu){
53    $menu[] = array(
54        'NAME' => l10n('user delete photo'),
55        'URL' => UDP_ADMIN,
56    );
57     return $menu;
58}
59*/
60?>
Note: See TracBrowser for help on using the repository browser.