Changeset 32923


Ignore:
Timestamp:
Jan 18, 2023, 8:44:34 PM (15 months ago)
Author:
ddtddt
Message:

[user_delete_photo] check php8

Location:
extensions/user_delete_photo
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_delete_photo/admin.php

    r32409 r32923  
    33// | user delete photo plugin for piwigo by TEMMII                         |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2013 - 2021 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2013 - 2023 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/user_delete_photo/initpicture.php

    r32660 r32923  
    33// | user delete photo plugin for piwigo by TEMMII                         |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2013 - 2021 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2013 - 2023 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    2222//Add prefilter
    2323add_event_handler('loc_begin_picture', 'udp', 55 );
    24  function udp()
    25   {
     24function udp(){
    2625  global $template;
    2726  $template->set_prefilter('picture', 'udpT');
    28   }
    29 
    30  function udpT($content)
    31   {
     27}
     28function udpT($content){
    3229  global $conf;
    3330  $search = '#<div id="'.$conf['udp'].'" class="imageInfo">#';
    3431  $replacement = '
    35 {if $UDFA}
     32{if isset ($UDFA)}
    3633 <div id="udp" class="imageInfo">
    3734  <form method="post">
     
    4340 <div id="'.$conf['udp'].'" class="imageInfo">';
    4441  return preg_replace($search, $replacement, $content);
    45   }
     42}
    4643
    4744add_event_handler('loc_begin_picture', 'udpA');
    48 
    49  function udpA()
    50 {
     45function udpA(){
    5146  global $conf, $page, $template  ;
    5247  load_language('plugin.lang', UDP_PATH);
     
    7267$udp=$row['username'];
    7368
    74 if (($udp == $user['username']))
    75  {
     69if (($udp == $user['username'])){
    7670 $template->assign(
    77  array  (
     71 array(
    7872 'UDFA' => 'udp',
    7973 ));
    80  }
     74}else{
     75 $template->assign(
     76 array(
     77 'UDFA' => '',
     78 ));   
     79}
    8180
    8281if ((isset($_POST['submitudpA']) and ($udp == $user['username'])))
  • extensions/user_delete_photo/language/en_UK/plugin.lang.php

    r32409 r32923  
    33// | user delete photo plugin for piwigo by TEMMII                         |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2013 - 2021 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2013 - 2023 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/user_delete_photo/language/fr_FR/plugin.lang.php

    r32409 r32923  
    33// | user delete photo plugin for piwigo by TEMMII                         |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2013 - 2021 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2013 - 2023 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/user_delete_photo/main.inc.php

    r32409 r32923  
    1313// | user delete photo plugin for piwigo by TEMMII                         |
    1414// +-----------------------------------------------------------------------+
    15 // | Copyright(C) 2013 - 2021 ddtddt             http://temmii.com/piwigo/ |
     15// | Copyright(C) 2013 - 2023 ddtddt             http://temmii.com/piwigo/ |
    1616// +-----------------------------------------------------------------------+
    1717// | This program is free software; you can redistribute it and/or modify  |
     
    4848}
    4949
    50 // menu admin
    51 /*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 */
    6050?>
  • extensions/user_delete_photo/maintain.class.php

    r32409 r32923  
    33// | user delete photo plugin for piwigo by TEMMII                         |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2013 - 2021 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2013 - 2023 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
Note: See TracChangeset for help on using the changeset viewer.