[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/class.sotemplate.php, 1.1.1.5
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/class.sotemplate.php, 1.1.1.5 |
Date: |
Sun, 23 May 2004 17:00:20 -0000 |
Update of /property
Modified Files:
Branch:
class.sotemplate.php
date: 2004/04/29 07:10:49; author: sigurdne; state: Exp; lines: +6 -5
Log Message:
db_addslashes
=====================================================================
Index: property/class.sotemplate.php
diff -u property/class.sotemplate.php:1.1.1.4
property/class.sotemplate.php:1.1.1.5
--- property/class.sotemplate.php:1.1.1.4 Sat Apr 24 19:39:54 2004
+++ property/class.sotemplate.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;
$this->left_join = $this->socommon->left_join;
@@ -321,8 +322,8 @@
function edit_hour($hour,$template_id)
{
- $hour['descr'] =
$this->db->db_addslashes($hour['descr']);
- $hour['remark'] =
$this->db->db_addslashes($hour['remark']);
+ $hour['descr'] =
$this->functions->db_addslashes($hour['descr']);
+ $hour['remark'] =
$this->functions->db_addslashes($hour['remark']);
$GLOBALS['phpgw']->db->Execute("UPDATE fm_template set
chapter_id ='" . $hour['chapter_id'] . "'
WHERE id= '$template_id'");
@@ -425,7 +426,7 @@
function add_template($values)
{
- $values['name'] =
$this->db->db_addslashes($values['name']);
+ $values['name'] =
$this->functions->db_addslashes($values['name']);
$GLOBALS['phpgw']->db->Execute("INSERT into fm_template
(owner,name,descr,chapter_id,entry_date) "
. " values ('" .
@@ -444,8 +445,8 @@
function edit_template($values)
{
- $values['name'] =
$this->db->db_addslashes($values['name']);
- $values['descr'] =
$this->db->db_addslashes($values['descr']);
+ $values['name'] =
$this->functions->db_addslashes($values['name']);
+ $values['descr'] =
$this->functions->db_addslashes($values['descr']);
$GLOBALS['phpgw']->db->Execute("UPDATE fm_template set
name='" . $values['name'] . "', descr='" . $values['descr'] . "', chapter_id='"
.
(int)$values['chapter_id']
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/class.sotemplate.php, 1.1.1.5,
nomail <=