Ignore:
Timestamp:
09/07/12 22:59:51 (7 years ago)
Author:
Eric
Message:

r17804 merged from trunk to branch 2.40

File:
1 edited

Legend:

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

    r17512 r17805  
    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.