Changeset 31464


Ignore:
Timestamp:
Mar 19, 2016, 7:18:13 PM (8 years ago)
Author:
ddtddt
Message:

[extensions] - user_delete_photo - 2.8

Location:
extensions/user_delete_photo
Files:
4 added
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_delete_photo/initpicture.php

    r26879 r31464  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | user delete photo plugin for piwigo                                   |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2013 - 2016 ddtddt             http://temmii.com/piwigo/ |
     6// +-----------------------------------------------------------------------+
     7// | This program is free software; you can redistribute it and/or modify  |
     8// | it under the terms of the GNU General Public License as published by  |
     9// | the Free Software Foundation                                          |
     10// |                                                                       |
     11// | This program is distributed in the hope that it will be useful, but   |
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     14// | General Public License for more details.                              |
     15// |                                                                       |
     16// | You should have received a copy of the GNU General Public License     |
     17// | along with this program; if not, write to the Free Software           |
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     19// | USA.                                                                  |
     20// +-----------------------------------------------------------------------+
     21
    222//Add prefilter
    323add_event_handler('loc_begin_picture', 'udp', 55 );
  • extensions/user_delete_photo/language/en_UK/index.php

    r21964 r31464  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based picture gallery                                  |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 
    242// Recursive call
    253$url = '../';
  • extensions/user_delete_photo/language/en_UK/plugin.lang.php

    r22755 r31464  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | user delete photo plugin for piwigo                                   |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2013 - 2016 ddtddt             http://temmii.com/piwigo/ |
     6// +-----------------------------------------------------------------------+
     7// | This program is free software; you can redistribute it and/or modify  |
     8// | it under the terms of the GNU General Public License as published by  |
     9// | the Free Software Foundation                                          |
     10// |                                                                       |
     11// | This program is distributed in the hope that it will be useful, but   |
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     14// | General Public License for more details.                              |
     15// |                                                                       |
     16// | You should have received a copy of the GNU General Public License     |
     17// | along with this program; if not, write to the Free Software           |
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     19// | USA.                                                                  |
     20// +-----------------------------------------------------------------------+
     21
    222$lang['Add information before'] = 'Add information before';
    323$lang['Photo deleted'] = 'Photo deleted';
     24$lang['user delete photo'] = 'user delete photo';
    425?>
  • extensions/user_delete_photo/language/fr_FR/index.php

    r21964 r31464  
    11<?php
    2 // +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based picture gallery                                  |
    4 // +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
    8 // +-----------------------------------------------------------------------+
    9 // | This program is free software; you can redistribute it and/or modify  |
    10 // | it under the terms of the GNU General Public License as published by  |
    11 // | the Free Software Foundation                                          |
    12 // |                                                                       |
    13 // | This program is distributed in the hope that it will be useful, but   |
    14 // | WITHOUT ANY WARRANTY; without even the implied warranty of            |
    15 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
    16 // | General Public License for more details.                              |
    17 // |                                                                       |
    18 // | You should have received a copy of the GNU General Public License     |
    19 // | along with this program; if not, write to the Free Software           |
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
    21 // | USA.                                                                  |
    22 // +-----------------------------------------------------------------------+
    23 
    242// Recursive call
    253$url = '../';
  • extensions/user_delete_photo/language/fr_FR/plugin.lang.php

    r22775 r31464  
    11<?php
     2// +-----------------------------------------------------------------------+
     3// | user delete photo plugin for piwigo                                   |
     4// +-----------------------------------------------------------------------+
     5// | Copyright(C) 2013 - 2016 ddtddt             http://temmii.com/piwigo/ |
     6// +-----------------------------------------------------------------------+
     7// | This program is free software; you can redistribute it and/or modify  |
     8// | it under the terms of the GNU General Public License as published by  |
     9// | the Free Software Foundation                                          |
     10// |                                                                       |
     11// | This program is distributed in the hope that it will be useful, but   |
     12// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
     13// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
     14// | General Public License for more details.                              |
     15// |                                                                       |
     16// | You should have received a copy of the GNU General Public License     |
     17// | along with this program; if not, write to the Free Software           |
     18// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
     19// | USA.                                                                  |
     20// +-----------------------------------------------------------------------+
    221$lang['Add information before'] = 'Ajouter l\'information avant';
    322$lang['Photo deleted'] = 'Photo supprimée';
     23$lang['user delete photo'] = 'user delete photo';
    424?>
  • extensions/user_delete_photo/main.inc.php

    r21964 r31464  
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=690
    77Author: ddtddt
    8 Author URI:
     8Author URI: http://temmii.com/piwigo/
    99*/
     10
     11// +-----------------------------------------------------------------------+
     12// | user delete photo plugin for piwigo                                   |
     13// +-----------------------------------------------------------------------+
     14// | Copyright(C) 2013 - 2016 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// +-----------------------------------------------------------------------+
    1030
    1131if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    1535define('UDP_DIR' , basename(dirname(__FILE__)));
    1636define('UDP_PATH' , PHPWG_PLUGINS_PATH . UDP_DIR . '/');
     37define('UDP_ADMIN',get_root_url().'admin.php?page=plugin-'.UDP_DIR);
    1738
     39add_event_handler('loading_lang', 'user_delete_photo_loading_lang');     
     40function user_delete_photo_loading_lang(){
     41  load_language('plugin.lang', UDP_PATH);
     42}
    1843
    1944 // Plugin on picture page
    20 if (script_basename() == 'picture') 
    21 
     45if (script_basename() == 'picture'){ 
    2246  include_once(dirname(__FILE__).'/initpicture.php');
    2347}
     
    2549// menu admin
    2650add_event_handler('get_admin_plugin_menu_links', 'UDP_admin_menu');
    27 function UDP_admin_menu($menu)
    28 {
    29   array_push($menu, array(
    30         'NAME' => 'user delete photo',
    31     'URL' => get_admin_plugin_menu_link(UDP_PATH . 'admin/admin.php')));
    32   return $menu;
     51function UDP_admin_menu($menu){
     52    $menu[] = array(
     53        'NAME' => l10n('user delete photo'),
     54        'URL' => UDP_ADMIN,
     55    );
     56     return $menu;
    3357}
    3458
Note: See TracChangeset for help on using the changeset viewer.