/[dolibarr]/dolibarr/htdocs/user.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/user.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.66 by eldy, Thu Jul 14 17:17:31 2005 UTC revision 1.67 by hregis, Mon Jul 25 15:41:51 2005 UTC
# Line 4  Line 4 
4   * Copyright (c) 2004-2005 Laurent Destailleur  <eldy@users.sourceforge.net>   * Copyright (c) 2004-2005 Laurent Destailleur  <eldy@users.sourceforge.net>
5   * Copyright (C) 2004      Sebastien Di Cintio  <sdicintio@ressource-toi.org>   * Copyright (C) 2004      Sebastien Di Cintio  <sdicintio@ressource-toi.org>
6   * Copyright (C) 2004      Benoit Mortier       <benoit.mortier@opensides.be>   * Copyright (C) 2004      Benoit Mortier       <benoit.mortier@opensides.be>
7     * Copyright (C) 2005      Regis Houssin        <regis.houssin@cap-networks.com>
8   *   *
9   * This program is free software; you can redistribute it and/or modify   * This program is free software; you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as published by   * it under the terms of the GNU General Public License as published by
# Line 31  Line 32 
32              \author     Laurent Destailleur              \author     Laurent Destailleur
33              \author     Sebastien Di Cintio              \author     Sebastien Di Cintio
34              \author     Benoit Mortier              \author     Benoit Mortier
35                \author     Regis Houssin
36              \version    $Revision$              \version    $Revision$
37  */  */
38    
# Line 60  class User Line 62  class User
62    var $datem;    var $datem;
63    var $societe_id;    var $societe_id;
64    var $webcal_login;    var $webcal_login;
65      var $gui_lang;
66    var $datelastaccess;    var $datelastaccess;
67        
68    var $error;    var $error;
# Line 97  class User Line 100  class User
100    function fetch($login='')    function fetch($login='')
101      {      {
102          $sql = "SELECT u.rowid, u.name, u.firstname, u.email, u.code, u.admin, u.login, u.pass, u.webcal_login, u.note,";          $sql = "SELECT u.rowid, u.name, u.firstname, u.email, u.code, u.admin, u.login, u.pass, u.webcal_login, u.note,";
103          $sql.= " u.fk_societe, u.fk_socpeople,";          $sql.= " u.fk_societe, u.fk_socpeople, u.gui_lang,";
104          $sql.= " ".$this->db->pdate("u.datec")." as datec, ".$this->db->pdate("u.tms")." as datem,";          $sql.= " ".$this->db->pdate("u.datec")." as datec, ".$this->db->pdate("u.tms")." as datem,";
105          $sql.= " ".$this->db->pdate("u.datelastaccess")." as datel";          $sql.= " ".$this->db->pdate("u.datelastaccess")." as datel";
106          $sql.= " FROM ".MAIN_DB_PREFIX."user as u";          $sql.= " FROM ".MAIN_DB_PREFIX."user as u";
# Line 130  class User Line 133  class User
133                  $this->contact_id = $obj->fk_socpeople;                  $this->contact_id = $obj->fk_socpeople;
134                  $this->note = stripslashes($obj->note);                  $this->note = stripslashes($obj->note);
135                  $this->lang = 'fr_FR';    // \todo Gérer la langue par défaut d'un utilisateur Dolibarr                  $this->lang = 'fr_FR';    // \todo Gérer la langue par défaut d'un utilisateur Dolibarr
136            
137                  $this->datec  = $obj->datec;                  $this->datec  = $obj->datec;
138                  $this->datem  = $obj->datem;                  $this->datem  = $obj->datem;
139                  $this->datelastaccess = $obj->datel;                  $this->datelastaccess = $obj->datel;
140                    
141                  $this->webcal_login = $obj->webcal_login;                  $this->webcal_login = $obj->webcal_login;
142                            $this->gui_lang = $obj->gui_lang;
143                  $this->societe_id = $obj->fk_societe;                  $this->societe_id = $obj->fk_societe;
144              }              }
145              $this->db->free($result);              $this->db->free($result);
# Line 658  class User Line 661  class User
661          $sql .= ", webcal_login = '$this->webcal_login'";          $sql .= ", webcal_login = '$this->webcal_login'";
662          $sql .= ", code = '$this->code'";          $sql .= ", code = '$this->code'";
663          $sql .= ", note = '$this->note'";          $sql .= ", note = '$this->note'";
664            $sql .= ", gui_lang = '$this->gui_lang'";
665          $sql .= " WHERE rowid = ".$this->id;          $sql .= " WHERE rowid = ".$this->id;
666    
667          $result = $this->db->query($sql);          $result = $this->db->query($sql);

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26