Changeset 17805 for extensions/UserAdvManager/branches/2.40/include
- Timestamp:
- Sep 7, 2012, 10:59:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.40/include/functions.inc.php
r17512 r17805 49 49 * Triggered on loc_begin_index 50 50 * 51 * Initiating GhostTracker 51 * Initiating GhostTracker - Perform user logout after registration if not validated 52 52 */ 53 53 function UAM_GhostTracker() 54 54 { 55 55 global $conf, $user; 56 57 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 56 58 57 59 $conf_UAM = unserialize($conf['UserAdvManager']); … … 99 101 } 100 102 } 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'); 101 111 } 102 112 } … … 1526 1536 // ------------------------------------------------------- 1527 1537 $patterns[] = '#\[username\]#i'; 1528 $replacements[] = $ username;1538 $replacements[] = $result['username']; 1529 1539 $patterns[] = '#\[mygallery\]#i'; 1530 1540 $replacements[] = $conf['gallery_title'];
Note: See TracChangeset
for help on using the changeset viewer.