Changeset 18275


Ignore:
Timestamp:
Sep 26, 2012, 6:15:49 PM (8 years ago)
Author:
Eric
Message:

no more need of USR_del_account.php
Deleting obsolete files from trunk

Location:
extensions/UserAdvManager/trunk
Files:
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/changelog.txt.php

    r18152 r18275  
    344344            New unvalidated user controls more efficient
    345345            Get admins emails instead of webmaster's for sending validation email
     346            rejected.php, ConfirmMail.php, GT_del_account.php and USR_del_account.php (and associated templates)are no more used. All messages are displayed on Piwigo's main page
    346347            TODO - New simplifed administration panel
     348            Update es_ES, thanks to : jpr928
     349            Update el_GR, thanks to : bas_alba
    347350*/
    348351?>
  • extensions/UserAdvManager/trunk/include/functions.inc.php

    r18239 r18275  
    577577          invalidate_user_cache();
    578578          logout_user();
    579           redirect( make_index_url().'?UAM_msg=deleted', 0);
     579          redirect(make_index_url().'?UAM_msg=deleted', 0);
    580580        }
    581581                }
     
    805805          invalidate_user_cache();
    806806          logout_user();
    807           redirect(UAM_PATH.'USR_del_account.php');
     807          redirect(make_index_url().'?UAM_msg=deleted', 0);
    808808        }
    809809                }
     
    929929    }
    930930
    931                                 // User account deleted after validation deadline
     931                                // User account deleted after validation deadline - Triggered by any other user
    932932    elseif (isset($conf_UAM[23]) and !empty($conf_UAM[23]) and $_GET['UAM_msg']=="deleted")
    933933    {
     
    944944      }
    945945      else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[23]));
     946     
     947      $page["errors"][]=$custom_text;
     948    }
     949
     950                                // User account deleted after validation deadline - Triggered by user himself
     951    elseif (isset($conf_UAM[31]) and !empty($conf_UAM[31]) and $_GET['UAM_msg']=="deleted")
     952    {
     953      // Management of Extension flags ([mygallery], [myurl]) - [username] flag can't be used here
     954      // -----------------------------------------------------------------------------------------
     955      $patterns[] = '#\[mygallery\]#i';
     956      $replacements[] = $conf['gallery_title'];
     957      $patterns[] = '#\[myurl\]#i';
     958      $replacements[] = get_gallery_home_url();
     959
     960      if (function_exists('get_user_language_desc'))
     961      {
     962        $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[31]));
     963      }
     964      else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[31]));
    946965     
    947966      $page["errors"][]=$custom_text;
Note: See TracChangeset for help on using the changeset viewer.