[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.sopricebook.php, 1.1.1.7
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.sopricebook.php, 1.1.1.7 |
Date: |
Sun, 23 May 2004 02:48:53 -0000 |
Update of /property
Modified Files:
Branch:
class.sopricebook.php
date: 2004/04/29 07:10:49; author: sigurdne; state: Exp; lines: +7 -6
Log Message:
db_addslashes
=====================================================================
Index: property/class.sopricebook.php
diff -u property/class.sopricebook.php:1.1.1.6
property/class.sopricebook.php:1.1.1.7
--- property/class.sopricebook.php:1.1.1.6 Mon Apr 26 12:21:23 2004
+++ property/class.sopricebook.php Thu Apr 29 07:10:49 2004
@@ -25,6 +25,7 @@
$this->db2 = $this->db;
$this->account = $GLOBALS['phpgw_data']['user']['id'];
$this->socommon =
CreateObject($this->currentapp.'_socommon');
+ $this->functions =
CreateObject($this->currentapp.'_functions');
$this->join = $this->socommon->join;
}
@@ -651,8 +652,8 @@
function add_activity($values)
{
- $values['descr'] =
$this->db->db_addslashes($values['descr']);
- $values['base_descr'] =
$this->db->db_addslashes($values['base_descr']);
+ $values['descr'] =
$this->functions->db_addslashes($values['descr']);
+ $values['base_descr'] =
$this->functions->db_addslashes($values['base_descr']);
$GLOBALS['phpgw']->db->Execute("INSERT INTO
fm_activities (id,
num,unit,agreement_id,ns3420,dim_d,branch_id,descr,base_descr) "
. "VALUES ('" .
@@ -673,8 +674,8 @@
function edit_activity($values)
{
- $values['descr'] =
$this->db->db_addslashes($values['descr']);
- $values['base_descr'] =
$this->db->db_addslashes($values['base_descr']);
+ $values['descr'] =
$this->functions->db_addslashes($values['descr']);
+ $values['base_descr'] =
$this->functions->db_addslashes($values['base_descr']);
$GLOBALS['phpgw']->db->Execute("UPDATE fm_activities set
num='" . $values['num'] . "',
@@ -694,7 +695,7 @@
function add_agreement($values)
{
- $values['descr'] =
$this->db->db_addslashes($values['descr']);
+ $values['descr'] =
$this->functions->db_addslashes($values['descr']);
$GLOBALS['phpgw']->db->Execute("INSERT INTO
fm_agreement (id,num,status,descr) "
. "VALUES ('" .
@@ -710,7 +711,7 @@
function edit_agreement($values)
{
- $values['descr'] =
$this->db->db_addslashes($values['descr']);
+ $values['descr'] =
$this->functions->db_addslashes($values['descr']);
$GLOBALS['phpgw']->db->Execute("UPDATE fm_agreement set
num='" . $values['num'] . "',
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.sopricebook.php, 1.1.1.7,
nomail <=