[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php, 1.80.2.
From: |
Dave Hall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php, 1.80.2.8.2.6, 1.80.2.8.2.7 |
Date: |
Tue, 09 Sep 2003 20:33:02 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv17812
Modified Files:
Tag: Version-0_9_16-branch
class.accounts_sql.inc.php
Log Message:
fix for bugs 5176 5177
Index: class.accounts_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.accounts_sql.inc.php,v
retrieving revision 1.80.2.8.2.6
retrieving revision 1.80.2.8.2.7
diff -C2 -r1.80.2.8.2.6 -r1.80.2.8.2.7
*** class.accounts_sql.inc.php 24 Jun 2003 11:46:04 -0000 1.80.2.8.2.6
--- class.accounts_sql.inc.php 10 Sep 2003 00:33:00 -0000 1.80.2.8.2.7
***************
*** 88,93 ****
$this->data['account_id'] =
$this->db->f('account_id');
$this->data['account_lid'] =
$this->db->f('account_lid');
! $this->data['firstname'] =
$this->db->f('account_firstname');
! $this->data['lastname'] =
$this->db->f('account_lastname');
$this->data['fullname'] =
$this->db->f('account_firstname') . ' ' . $this->db->f('account_lastname');
$this->data['lastlogin'] =
$this->db->f('account_lastlogin');
--- 88,93 ----
$this->data['account_id'] =
$this->db->f('account_id');
$this->data['account_lid'] =
$this->db->f('account_lid');
! $this->data['account_firstname'] =
$this->db->f('account_firstname');
! $this->data['account_lastname'] =
$this->db->f('account_lastname');
$this->data['fullname'] =
$this->db->f('account_firstname') . ' ' . $this->db->f('account_lastname');
$this->data['lastlogin'] =
$this->db->f('account_lastlogin');
***************
*** 96,99 ****
--- 96,100 ----
$this->data['status'] =
$this->db->f('account_status');
$this->data['expires'] =
$this->db->f('account_expires');
+ $this->data['person_id'] =
$this->db->f('person_id');
return $this->data;
***************
*** 106,113 ****
function save_repository()
{
! $this->db->query("UPDATE phpgw_accounts SET
account_firstname='" . $this->data['firstname']
! . "', account_lastname='" .
$this->data['lastname'] . "', account_status='"
. $this->data['status'] . "', account_expires="
. $this->data['expires']
. ($this->data['account_lid']?",
account_lid='".$this->data['account_lid']."'":'')
. ' WHERE account_id=' .
intval($this->account_id),__LINE__,__FILE__);
}
--- 107,115 ----
function save_repository()
{
! $this->db->query("UPDATE phpgw_accounts SET
account_firstname='" . $this->data['account_firstname']
! . "', account_lastname='" .
$this->data['account_lastname'] . "', account_status='"
. $this->data['status'] . "', account_expires="
. $this->data['expires']
. ($this->data['account_lid']?",
account_lid='".$this->data['account_lid']."'":'')
+ . ($this->data['person_id']?",
person_id=".$this->data['person_id']:'')
. ' WHERE account_id=' .
intval($this->account_id),__LINE__,__FILE__);
}
***************
*** 338,347 ****
function create($account_info,$default_prefs=True)
{
$this->db->query('insert into phpgw_accounts
(account_lid, account_type, account_pwd, '
! . "account_firstname, account_lastname,
account_status, account_expires) values ('"
. $account_info['account_lid'] . "','" .
$account_info['account_type'] . "','"
. md5($account_info['account_passwd']) . "', '"
. $account_info['account_firstname']
. "','" . $account_info['account_lastname'] .
"','" . $account_info['account_status']
! . "'," . $account_info['account_expires'] .
')',__LINE__,__FILE__);
$accountid =
$this->db->get_last_insert_id('phpgw_accounts','account_id');
--- 340,350 ----
function create($account_info,$default_prefs=True)
{
+ $person_id =
$account_info['person_id']?$account_info['person_id']:'NULL';
$this->db->query('insert into phpgw_accounts
(account_lid, account_type, account_pwd, '
! . "account_firstname, account_lastname,
account_status, account_expires, person_id) values ('"
. $account_info['account_lid'] . "','" .
$account_info['account_type'] . "','"
. md5($account_info['account_passwd']) . "', '"
. $account_info['account_firstname']
. "','" . $account_info['account_lastname'] .
"','" . $account_info['account_status']
! . "'," . $account_info['account_expires'] . ",
" . $person_id . ')',__LINE__,__FILE__);
$accountid =
$this->db->get_last_insert_id('phpgw_accounts','account_id');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.accounts_sql.inc.php, 1.80.2.8.2.6, 1.80.2.8.2.7,
Dave Hall <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: projects/templates/default form_mstone.tpl, 1.1, 1.2 addressbook.tpl, 1.16, 1.17 archive.tpl, 1.7, 1.8 bill_list.tpl, 1.15, 1.16 bill_listhours.tpl, 1.22, 1.23 bill_listinvoice.tpl, 1.12, 1.13 del_listhours.tpl, 1.18, 1.19 delete.tpl, 1.11, 1.12 form.tpl, 1.35, 1.36 formactivity.tpl, 1.16, 1.17 header.tpl, 1.18, 1.19 hours_formhours.tpl, 1.22, 1.23 hours_listhours.tpl, 1.18, 1.19 hours_view.tpl, 1.7, 1.8 list.tpl, 1.28, 1.29 list_admin.tpl, 1.8, 1.9 list_budget.tpl, 1.2, 1.3 list_pcosts.tpl, 1.2, 1.3 listactivities.tpl, 1.18, 1.19 preference_colspan.tpl, 1.4, 1.5 preferences.tpl, 1.22, 1.23 stats_projectlist.tpl, 1.13, 1.14 stats_projectstat.tpl, 1.13, 1.14 stats_userlist.tpl, 1.11, 1.12 stats_userstat.tpl, 1.13, 1.14 view.tpl, 1.8, 1.9
- Next by Date:
[Phpgroupware-cvs] CVS: admin/templates/default account_form.tpl, 1.22.4.4, 1.22.4.5
- Previous by thread:
[Phpgroupware-cvs] CVS: projects/templates/default form_mstone.tpl, 1.1, 1.2 addressbook.tpl, 1.16, 1.17 archive.tpl, 1.7, 1.8 bill_list.tpl, 1.15, 1.16 bill_listhours.tpl, 1.22, 1.23 bill_listinvoice.tpl, 1.12, 1.13 del_listhours.tpl, 1.18, 1.19 delete.tpl, 1.11, 1.12 form.tpl, 1.35, 1.36 formactivity.tpl, 1.16, 1.17 header.tpl, 1.18, 1.19 hours_formhours.tpl, 1.22, 1.23 hours_listhours.tpl, 1.18, 1.19 hours_view.tpl, 1.7, 1.8 list.tpl, 1.28, 1.29 list_admin.tpl, 1.8, 1.9 list_budget.tpl, 1.2, 1.3 list_pcosts.tpl, 1.2, 1.3 listactivities.tpl, 1.18, 1.19 preference_colspan.tpl, 1.4, 1.5 preferences.tpl, 1.22, 1.23 stats_projectlist.tpl, 1.13, 1.14 stats_projectstat.tpl, 1.13, 1.14 stats_userlist.tpl, 1.11, 1.12 stats_userstat.tpl, 1.13, 1.14 view.tpl, 1.8, 1.9
- Next by thread:
[Phpgroupware-cvs] CVS: admin/templates/default account_form.tpl, 1.22.4.4, 1.22.4.5
- Index(es):