Ignore:
Timestamp:
Oct 2, 2011, 7:14:27 PM (13 years ago)
Author:
Eric
Message:

Bug 2455 fixed - Exclusion of specific users (généric and admins users) for password reset function.
Bug 2451 fixed - Unable to handle Sql errors but control of backup file validity have been enforced.

File:
1 edited

Legend:

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

    r12275 r12314  
    399399  // -----------------------------------------------------
    400400  if ((isset($conf_UAM[20]) and $conf_UAM[20] == 'true'))
    401   { 
     401  {
    402402    $query ='
    403403SELECT user_id, status
     
    426426    $data = pwg_db_fetch_assoc(pwg_query($query));
    427427
    428     if ($data['status'] <> "admin" and $data['status'] <> "webmaster" and $data['status'] <> "generic") // Exclusion of specific accounts
     428    if ($data['status'] <> "webmaster" and $data['status'] <> "generic") // Exclusion of specific accounts
    429429    {
    430430      if (UAM_check_pwgreset($user['id']))
     
    28002800{
    28012801  global $conf;
    2802  
     2802
     2803  $plugin =  PluginInfos(UAM_PATH);
     2804  $version = $plugin['version'];
     2805
    28032806  // Initial backup folder creation and file initialisation
    28042807  // ------------------------------------------------------
     
    28102813  $fp = fopen($Backup_File, 'w');
    28112814
     2815  // Writing plugin version
     2816  $insertions = "-- ".$version." --\n\n";
     2817  fwrite($fp, $insertions);
    28122818
    28132819  // Saving UAM specific tables
Note: See TracChangeset for help on using the changeset viewer.