Ignore:
Timestamp:
Aug 18, 2010, 10:56:53 PM (14 years ago)
Author:
Eric
Message:

Merge from Trunk to Branch 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/branches/2.15/maintain.inc.php

    r6256 r6776  
    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     upgrade_2151_2152();
    175   }
    176 */
     177  if ($count == 0)
     178  {
     179    upgrade_2153_2154();
     180  }
     181
    177182load_conf_from_db('param like \'UserAdvManager\\_%\'');
    178183}
Note: See TracChangeset for help on using the changeset viewer.