Ignore:
Timestamp:
Sep 7, 2012, 10:58:47 PM (12 years ago)
Author:
Eric
Message:

Version 2.40.5 :

  • Bug 2739 fixed : Php notice on admins manual validation
  • Bug 2740 fixed : Logout on auto-login after registration if registration not validated
File:
1 edited

Legend:

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

    r17507 r17804  
    4949 * Triggered on loc_begin_index
    5050 *
    51  * Initiating GhostTracker
     51 * Initiating GhostTracker - Perform user logout after registration if not validated
    5252 */
    5353function UAM_GhostTracker()
    5454{
    5555  global $conf, $user;
     56
     57  include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    5658
    5759  $conf_UAM = unserialize($conf['UserAdvManager']);
     
    99101      }
    100102    }
     103  }
     104
     105  // Perform user logout after registration if not validated
     106  if ((isset($conf_UAM[39]) and $conf_UAM[39] == 'true') and !UAM_UsrReg_Verif($user['id']))
     107  {
     108    invalidate_user_cache();
     109    logout_user();
     110    redirect(UAM_PATH.'rejected.php');
    101111  }
    102112}
     
    15261536    // -------------------------------------------------------
    15271537    $patterns[] = '#\[username\]#i';
    1528     $replacements[] = $username;
     1538    $replacements[] = $result['username'];
    15291539    $patterns[] = '#\[mygallery\]#i';
    15301540    $replacements[] = $conf['gallery_title'];
Note: See TracChangeset for help on using the changeset viewer.