Ignore:
Timestamp:
Sep 24, 2012, 7:24:52 PM (12 years ago)
Author:
Eric
Message:

no more need of GT_del_account.php and del_account.tpl
Language files obsolete keys cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/include/functions.inc.php

    r18205 r18206  
    577577          invalidate_user_cache();
    578578          logout_user();
    579           redirect(UAM_PATH.'GT_del_account.php');
     579          redirect( make_index_url().'?UAM_msg=deleted', 0);
    580580        }
    581581                }
     
    909909    global $user, $lang, $conf, $page;
    910910    $conf_UAM = unserialize($conf['UserAdvManager']);
    911    
     911
     912    // Connexion rejected until validation
    912913    if (isset($conf_UAM[40]) and $conf_UAM[40] <> '' and $_GET['UAM_msg']="rejected")
    913914    {
     
    924925      }
    925926      else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[40]));
     927     
     928      $page["errors"][]=$custom_text;
     929    }
     930
     931                                // User account deleted after validation deadline
     932    if (isset($conf_UAM[23]) and $conf_UAM[23] <> '' and $_GET['UAM_msg']="deleted")
     933    {
     934      // Management of Extension flags ([mygallery], [myurl]) - [username] flag can't be used here
     935      // -----------------------------------------------------------------------------------------
     936      $patterns[] = '#\[mygallery\]#i';
     937      $replacements[] = $conf['gallery_title'];
     938      $patterns[] = '#\[myurl\]#i';
     939      $replacements[] = get_gallery_home_url();
     940
     941      if (function_exists('get_user_language_desc'))
     942      {
     943        $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[23]));
     944      }
     945      else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[23]));
     946     
    926947      $page["errors"][]=$custom_text;
    927948    }
Note: See TracChangeset for help on using the changeset viewer.