[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.historylog.inc.php,1.8,1.9
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.historylog.inc.php,1.8,1.9 |
Date: |
Mon, 05 May 2003 15:25:18 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv19277
Modified Files:
class.historylog.inc.php
Log Message:
gnu-patch #810
Index: class.historylog.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.historylog.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** class.historylog.inc.php 9 Jun 2002 01:30:55 -0000 1.8
--- class.historylog.inc.php 5 May 2003 19:25:16 -0000 1.9
***************
*** 49,53 ****
function delete($record_id)
{
! $this->db->query("delete from phpgw_history_log where
history_record_id='$record_id' and "
. "history_appname='" . $this->appname .
"'",__LINE__,__FILE__);
}
--- 49,53 ----
function delete($record_id)
{
! $this->db->query("delete from phpgw_history_log where
history_record_id='".intval($record_id)."' and "
. "history_appname='" . $this->appname .
"'",__LINE__,__FILE__);
}
***************
*** 57,61 ****
$this->db->query("insert into phpgw_history_log
(history_record_id,"
.
"history_appname,history_owner,history_status,history_new_value,history_timestamp)
"
! . "values ('$record_id','" . $this->appname .
"','"
. $GLOBALS['phpgw_info']['user']['account_id']
. "','$status','"
. addslashes($new_value) . "','" .
$this->db->to_timestamp(time())
--- 57,61 ----
$this->db->query("insert into phpgw_history_log
(history_record_id,"
.
"history_appname,history_owner,history_status,history_new_value,history_timestamp)
"
! . "values ('".intval($record_id)."','" .
$this->appname . "','"
. $GLOBALS['phpgw_info']['user']['account_id']
. "','$status','"
. addslashes($new_value) . "','" .
$this->db->to_timestamp(time())
***************
*** 97,101 ****
$this->db->query("select * from phpgw_history_log where
history_appname='"
! . $this->appname . "' and
history_record_id='$record_id' $filter $only_show_filter "
. "$orderby",__LINE__,__FILE__);
while ($this->db->next_record())
--- 97,101 ----
$this->db->query("select * from phpgw_history_log where
history_appname='"
! . $this->appname . "' and
history_record_id='".intval($record_id)."' $filter $only_show_filter "
. "$orderby",__LINE__,__FILE__);
while ($this->db->next_record())
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.historylog.inc.php,1.8,1.9,
Ralf Becker <address@hidden> <=