fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8056] integration - testing


From: Sigurd Nes
Subject: [Fmsystem-commits] [8056] integration - testing
Date: Tue, 08 Nov 2011 15:36:18 +0000

Revision: 8056
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8056
Author:   sigurdne
Date:     2011-11-08 15:36:17 +0000 (Tue, 08 Nov 2011)
Log Message:
-----------
integration - testing

Modified Paths:
--------------
    trunk/property/inc/class.uilocation.inc.php

Modified: trunk/property/inc/class.uilocation.inc.php
===================================================================
--- trunk/property/inc/class.uilocation.inc.php 2011-11-08 12:24:17 UTC (rev 
8055)
+++ trunk/property/inc/class.uilocation.inc.php 2011-11-08 15:36:17 UTC (rev 
8056)
@@ -2390,10 +2390,32 @@
                                                                $_keys[] = 
$_substitute;
                                                                $_values[] = 
urlencode($values[trim($_substitute, '_')]);
                                                        }
-                                                       $integration_src .= '&' 
. str_replace($_keys, $_values, $_config_section_data['location_data']);
+                                                       //$integration_src .= 
'&' . str_replace($_keys, $_values, $_config_section_data['location_data']);
+                                                       $integration_src .= 
'ctittel=5374.019%';
                                                }
 
                                                $integration_src .= 
"&{$_config_section_data['auth_key_name']}={$response}";
+                                               
+                                               //FIXME NOT WORKING!! test for 
webservice, auth...
+                                               
if(isset($_config_section_data['method']) && $_config_section_data['method'] == 
'POST')
+                                               {
+                                                       $aContext = array
+                                                       (
+                                                               'http' => array
+                                                               (
+                                                                       
'method'                        => 'POST',
+                                                                       
'request_fulluri'       => true,
+                                                               ),
+                                                       );
+       
+                                                       
if(isset($GLOBALS['phpgw_info']['server']['httpproxy_server']))
+                                                       {
+                                                               
$aContext['http']['proxy'] = 
"{$GLOBALS['phpgw_info']['server']['httpproxy_server']}:{$GLOBALS['phpgw_info']['server']['httpproxy_port']}";
+                                                       }
+       
+                                                       $cxContext = 
stream_context_create($aContext);
+                                                       $response = 
trim(file_get_contents($integration_src, False, $cxContext));
+                                               }
                                                //_debug_array($values);
                                                
//_debug_array($integration_src);die();
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]