/[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.72 by eldy, Sat Oct 22 17:30:44 2005 UTC revision 1.73 by eldy, Tue Nov 1 16:50:31 2005 UTC
# Line 807  class User Line 807  class User
807    function update_last_login_date()    function update_last_login_date()
808      {      {
809          dolibarr_syslog ("Mise a jour date derniere connexion pour user->id=".$this->id);          dolibarr_syslog ("Mise a jour date derniere connexion pour user->id=".$this->id);
810    
811            $now=time();
812            
813          $sql = "UPDATE ".MAIN_DB_PREFIX."user";          $sql = "UPDATE ".MAIN_DB_PREFIX."user";
814          $sql.= " SET datelastaccess = sysdate()";          $sql.= " SET datelastaccess = ".$this->db->idate($now);
815          $sql.= " WHERE rowid = ".$this->id;          $sql.= " WHERE rowid = ".$this->id;
816          $resql = $this->db->query($sql);          $resql = $this->db->query($sql);
817          if ($resql)          if ($resql)
818          {          {
819                $this->datelastaccess=$now;
820              return 1;              return 1;
821          }          }
822          else          else

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

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