Ignore:
Timestamp:
08/18/10 22:43:18 (10 years ago)
Author:
Eric
Message:
  • Bug 1727 partially fixed: New option to redirect users to profile page after their first login only.
  • Known problem:
  • The redirection doesn't work after registration and after confirmation page (if ConfirmMail is enabled)
  • The redirection applies to already registered users including admins, webmaster and generic status.
  • Language files updated
  • Upgrade of upgradedb.inc.php
  • Prepare to new version 2.15.4 encode
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/maintain.inc.php

    r6354 r6775  
    1818        global $conf; 
    1919         
    20   $default1 = array('false','false','false',-1,-1,-1,'false','false','',-1,'','','false','','false',100,'false','false',10,'Hello. 
     20  $default1 = array('false','false',-1,-1,-1,'false','false','',-1,'','','false','','false',100,'false','false',10,'Hello. 
    2121         
    2222This is a reminder because a very long time passed since your last visit on our gallery. If you do not want anymore to use your access account, please let us know by replying to this email. Your account will be deleted. 
     
    4848INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 
    4949VALUES ("UserAdvManager_ConfirmMail","'.addslashes(serialize($default2)).'","UAM ConfirmMail parameters") 
     50  ;'; 
     51  pwg_query($q); 
     52   
     53  $q = ' 
     54INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 
     55VALUES ("UserAdvManager_Redir","0","UAM Redirections") 
    5056  ;'; 
    5157  pwg_query($q); 
     
    160166  } 
    161167 
    162 /* Check if old version is > 2.15 */ 
    163 /* ****************************** */ 
    164 // In preparation of next releases 
    165    $query = ' 
     168/* Old version is > 2.15 */ 
     169/* ********************* */ 
     170        $query = ' 
    166171SELECT param 
    167172  FROM '.CONFIG_TABLE.' 
    168 WHERE param LIKE "UserAdvManager%" 
     173WHERE param = "UserAdvManager_Redir" 
    169174;'; 
    170175  $count = pwg_db_num_rows(pwg_query($query)); 
    171176   
    172   if ($count == 2) 
    173   { 
    174     $query = ' 
    175 SELECT value 
    176   FROM '.CONFIG_TABLE.' 
    177 WHERE param = "UserAdvManager" 
    178 ;'; 
    179  
    180     $result = pwg_query($query); 
    181     $conf = pwg_db_fetch_assoc($result); 
    182      
    183     $conf_UAM = unserialize($conf['value']); 
    184     $Nb_values = count($conf_UAM); 
    185     if ($Nb_values = 22) 
    186     { 
    187       upgrade_2153_2154(); 
    188     } 
     177  if ($count == 0) 
     178  { 
     179    upgrade_2153_2154(); 
    189180  } 
    190181 
Note: See TracChangeset for help on using the changeset viewer.