Changeset 10706


Ignore:
Timestamp:
04/30/11 21:13:08 (9 years ago)
Author:
Eric
Message:
  • Bug 2289 fixed - "Password in clear text in the information email" works now in the logical way
  • Plugin update improvement
  • New version 2.20.6 hard coded for publication
Location:
extensions/UserAdvManager/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/changelog.txt.php

    r10678 r10706  
    245245 
    246246-- 2.20.5 : Bug 2287 fixed - The UAM block for PWG_Stuffs is correctly displayed (stuffs_module directory was missing) 
     247 
     248-- 2.20.6 : Improve database update process 
     249            Bug 2289 fixed - "Password in clear text in the information email" was working in a reverse logic 
    247250*/ 
    248251?> 
  • extensions/UserAdvManager/trunk/include/functions.inc.php

    r10391 r10706  
    858858  if (isset($conf_UAM[0]) and $conf_UAM[0] == 'true') 
    859859  { 
    860     if (isset($conf_UAM[35]) and $conf_UAM[35] == 'false') // Allow display of clear password in email 
     860    if (isset($conf_UAM[35]) and $conf_UAM[35] == 'true') // Allow display of clear password in email 
    861861    { 
    862862      $infos1 = array( 
  • extensions/UserAdvManager/trunk/include/upgradedb.inc.php

    r10391 r10706  
    3131  $plugin =  PluginInfos(UAM_PATH); 
    3232  $version = $plugin['version']; 
    33    
    34   // Update plugin version  
     33 
     34  // Update plugin version in #_config table 
    3535  $query = ' 
    3636UPDATE '.CONFIG_TABLE.' 
     
    4141 
    4242  pwg_query($query); 
     43 
     44 
     45// Check #_plugin table consistency 
     46// Only useful if a previous version upgrade has not worked correctly (rare case) 
     47  $query = ' 
     48SELECT version 
     49  FROM '.PLUGINS_TABLE.' 
     50WHERE id = "UserAdvManager" 
     51;'; 
     52   
     53  $data = pwg_db_fetch_assoc(pwg_query($query)); 
     54   
     55  if (empty($data['version']) or $data['version'] <> $version) 
     56  { 
     57    $query = ' 
     58UPDATE '.PLUGINS_TABLE.' 
     59SET version="'.$version.'" 
     60WHERE id = "UserAdvManager" 
     61LIMIT 1 
     62;'; 
     63 
     64    pwg_query($query); 
     65  } 
    4366} 
    4467 
  • extensions/UserAdvManager/trunk/main.inc.php

    r10678 r10706  
    22/* 
    33Plugin Name: UserAdvManager 
    4 Version: 2.20.5 
     4Version: 2.20.6 
    55Description: Renforcer la gestion des utilisateurs - Enforce users management 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 
  • extensions/UserAdvManager/trunk/maintain.inc.php

    r10391 r10706  
    254254  } 
    255255 
     256  // Update plugin version number in #_config table and check consistency of #_plugins table 
    256257  UAM_version_update(); 
    257258 
Note: See TracChangeset for help on using the changeset viewer.