Changeset 32923
- Timestamp:
- Jan 18, 2023, 8:44:34 PM (15 months ago)
- Location:
- extensions/user_delete_photo
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/user_delete_photo/admin.php
r32409 r32923 3 3 // | user delete photo plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2013 - 202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2013 - 2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/user_delete_photo/initpicture.php
r32660 r32923 3 3 // | user delete photo plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2013 - 202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2013 - 2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | … … 22 22 //Add prefilter 23 23 add_event_handler('loc_begin_picture', 'udp', 55 ); 24 function udp() 25 { 24 function udp(){ 26 25 global $template; 27 26 $template->set_prefilter('picture', 'udpT'); 28 } 29 30 function udpT($content) 31 { 27 } 28 function udpT($content){ 32 29 global $conf; 33 30 $search = '#<div id="'.$conf['udp'].'" class="imageInfo">#'; 34 31 $replacement = ' 35 {if $UDFA}32 {if isset ($UDFA)} 36 33 <div id="udp" class="imageInfo"> 37 34 <form method="post"> … … 43 40 <div id="'.$conf['udp'].'" class="imageInfo">'; 44 41 return preg_replace($search, $replacement, $content); 45 42 } 46 43 47 44 add_event_handler('loc_begin_picture', 'udpA'); 48 49 function udpA() 50 { 45 function udpA(){ 51 46 global $conf, $page, $template ; 52 47 load_language('plugin.lang', UDP_PATH); … … 72 67 $udp=$row['username']; 73 68 74 if (($udp == $user['username'])) 75 { 69 if (($udp == $user['username'])){ 76 70 $template->assign( 77 array 71 array( 78 72 'UDFA' => 'udp', 79 73 )); 80 } 74 }else{ 75 $template->assign( 76 array( 77 'UDFA' => '', 78 )); 79 } 81 80 82 81 if ((isset($_POST['submitudpA']) and ($udp == $user['username']))) -
extensions/user_delete_photo/language/en_UK/plugin.lang.php
r32409 r32923 3 3 // | user delete photo plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2013 - 202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2013 - 2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/user_delete_photo/language/fr_FR/plugin.lang.php
r32409 r32923 3 3 // | user delete photo plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2013 - 202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2013 - 2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/user_delete_photo/main.inc.php
r32409 r32923 13 13 // | user delete photo plugin for piwigo by TEMMII | 14 14 // +-----------------------------------------------------------------------+ 15 // | Copyright(C) 2013 - 202 1ddtddt http://temmii.com/piwigo/ |15 // | Copyright(C) 2013 - 2023 ddtddt http://temmii.com/piwigo/ | 16 16 // +-----------------------------------------------------------------------+ 17 17 // | This program is free software; you can redistribute it and/or modify | … … 48 48 } 49 49 50 // menu admin51 /*add_event_handler('get_admin_plugin_menu_links', 'UDP_admin_menu');52 function UDP_admin_menu($menu){53 $menu[] = array(54 'NAME' => l10n('user delete photo'),55 'URL' => UDP_ADMIN,56 );57 return $menu;58 }59 */60 50 ?> -
extensions/user_delete_photo/maintain.class.php
r32409 r32923 3 3 // | user delete photo plugin for piwigo by TEMMII | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2013 - 202 1ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2013 - 2023 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify |
Note: See TracChangeset
for help on using the changeset viewer.