Ignore:
Timestamp:
Nov 14, 2011, 11:17:15 PM (13 years ago)
Author:
dj3c1t
Message:

passage a Fluxbb 1.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rsr.v5.1.dev/web/app/data/modules/data_users.php

    r1 r3  
    9999       'username=\''.$db->escape($form_username).'\''
    100100      :'LOWER(username)=LOWER(\''.$db->escape($form_username).'\')';
     101      $_sql =
     102       'SELECT id, group_id, password'
     103      .' FROM '.$db->prefix.'users'
     104      .' WHERE '.$username_sql;
    101105      $result = $db->query
    102       ( 'SELECT id, group_id, password, save_pass'
    103        .' FROM '.$db->prefix.'users'
    104        .' WHERE '.$username_sql
     106      ( $_sql
    105107      ) or error('Impossible de retrouver les informations utilisateur', __FILE__, __LINE__, $db->error());
    106       list($user_id, $group_id, $db_password_hash, $save_pass) = $db->fetch_row($result);
     108      list($user_id, $group_id, $db_password_hash) = $db->fetch_row($result);
     109      $save_pass = 1;
    107110      $authorized = false;
    108111      if(!empty($db_password_hash))
Note: See TracChangeset for help on using the changeset viewer.