Changeset 17806


Ignore:
Timestamp:
09/07/12 23:00:35 (7 years ago)
Author:
Eric
Message:

r17804 merged from trunk to branch 2.30

File:
1 edited

Legend:

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

    r17511 r17806  
    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} 
Note: See TracChangeset for help on using the changeset viewer.