db->query('UPDATE phpgw_accounts SET account_lastloginfrom=' . $GLOBALS['egw']->db->quote($ip).', account_lastlogin=' . time() . ' WHERE account_id='.(int)$account_id,__LINE__,__FILE__); } } ?>