[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18531] Add some log and fix the SQL
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [18531] Add some log and fix the SQL |
Date: |
Wed, 14 May 2008 17:37:40 +0000 |
Revision: 18531
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18531
Author: Caeies
Date: 2008-05-14 17:37:36 +0000 (Wed, 14 May 2008)
Log Message:
-----------
Add some log and fix the SQL
Modified Paths:
--------------
trunk/syncml/inc/class.sosession.inc.php
Modified: trunk/syncml/inc/class.sosession.inc.php
===================================================================
--- trunk/syncml/inc/class.sosession.inc.php 2008-05-14 17:34:13 UTC (rev
18530)
+++ trunk/syncml/inc/class.sosession.inc.php 2008-05-14 17:37:36 UTC (rev
18531)
@@ -114,7 +114,7 @@
function set_session_mapping($header, $phpgw_sid)
{
$syncml_hash = $this->generate_session_hash($header);
-
+ syncml_logger::get_instance()->log("set_session_mapping
: header = '".print_r($header, true)."' phpgw_sid = $phpgw_sid
syncml_hash=$syncml_hash");
$GLOBALS['phpgw']->db->query(sprintf("
DELETE FROM phpgw_syncml_sessions
WHERE
@@ -124,8 +124,8 @@
$GLOBALS['phpgw']->db->query(sprintf("
INSERT INTO phpgw_syncml_sessions(
- syncml_hash, phpgw_sid, session_dla)
- VALUES('%s', '%s', '%d')",
+ syncml_hash, phpgw_sid, session_dla,
next_nonce)
+ VALUES('%s', '%s', '%d', '')",
$GLOBALS["phpgw"]->db->db_addslashes($syncml_hash),
$GLOBALS["phpgw"]->db->db_addslashes($phpgw_sid),
time()),
@@ -138,6 +138,7 @@
function set_next_nonce($header, $next_nonce)
{
$syncml_hash = $this->generate_session_hash($header);
+ syncml_logger::get_instance()->log("set_next_nonce :
header = '".print_r($header, true)."' next_nonce = $next_nonce
syncml_hash=$syncml_hash");
$GLOBALS['phpgw']->db->query(sprintf('
UPDATE phpgw_syncml_sessions
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18531] Add some log and fix the SQL,
Caeies <=