Changeset 17968


Ignore:
Timestamp:
09/17/12 14:13:47 (7 years ago)
Author:
flop25
Message:

Don't redirect guest, and AdultContent users to redirect.php
syntaxe correction

File:
1 edited

Legend:

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

    r17946 r17968  
    102102      } 
    103103    } 
    104   } 
    105  
    106   // Perform user logout after registration if not validated 
    107   if ((isset($conf_UAM[39]) and $conf_UAM[39] == 'true') and !UAM_UsrReg_Verif($user['id']) and !is_admin() and !is_webmaster()) 
    108   { 
    109     invalidate_user_cache(); 
    110     logout_user(); 
    111     redirect(UAM_PATH.'rejected.php'); 
     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']) and !is_admin() and !is_webmaster() ) 
     107    { 
     108      invalidate_user_cache(); 
     109      logout_user(); 
     110      redirect(UAM_PATH.'rejected.php'); 
     111    } 
    112112  } 
    113113} 
     
    16211621SELECT COUNT(*) 
    16221622  FROM '.USER_CONFIRM_MAIL_TABLE.' 
    1623 WHERE id = '.$id.' 
     1623WHERE id = "'.$id.'" 
    16241624;'; 
    16251625    list($count) = pwg_db_fetch_row(pwg_query($query)); 
Note: See TracChangeset for help on using the changeset viewer.