[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [18526] Add a crud way of debuging xml messages | avo
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [18526] Add a crud way of debuging xml messages | avoid to truncate the phpgw_access_log |
Date: |
Wed, 14 May 2008 17:30:24 +0000 |
Revision: 18526
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18526
Author: Caeies
Date: 2008-05-14 17:30:17 +0000 (Wed, 14 May 2008)
Log Message:
-----------
Add a crud way of debuging xml messages | avoid to truncate the phpgw_access_log
Modified Paths:
--------------
trunk/syncml/syncml.php
Modified: trunk/syncml/syncml.php
===================================================================
--- trunk/syncml/syncml.php 2008-05-11 04:26:33 UTC (rev 18525)
+++ trunk/syncml/syncml.php 2008-05-14 17:30:17 UTC (rev 18526)
@@ -37,8 +37,9 @@
require_once 'inc/class.syncml_response.inc.php';
require_once 'inc/class.syncml_message.inc.php';
+ $file_date = gettimeofday(true);
// this is a ugly, ugly hack
- $GLOBALS['phpgw']->db->query('TRUNCATE phpgw_access_log');
+ //$GLOBALS['phpgw']->db->query('TRUNCATE phpgw_access_log');
if(!isset($_SERVER['CONTENT_TYPE']) ||
$_SERVER['REQUEST_METHOD'] != 'POST')
@@ -48,6 +49,7 @@
$post_input = implode("\r\n", file('php://input'));
+ file_put_contents('/tmp/'.$file_date.'-a.xml', $post_input);
switch($_SERVER['CONTENT_TYPE'])
{
case 'application/vnd.syncml+wbxml':
@@ -64,7 +66,6 @@
// the header
-
$header = $parser->parse($post_input,
new xml_offset_mapper(array('SYNCML', 'SYNCHDR')));
$message->process_header($header);
@@ -84,6 +85,7 @@
$message->execute($response);
$response->print_response();
+ file_put_contents('/tmp/'.$file_date.'-b.xml', ob_get_contents()."\n");
if($_SERVER['CONTENT_TYPE'] == 'application/vnd.syncml+wbxml')
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [18526] Add a crud way of debuging xml messages | avoid to truncate the phpgw_access_log,
Caeies <=