Fixed syntaxlogic bugs in proxy utilisation, thanks to forum member pierre

This commit is contained in:
Andre Lorbach 2011-08-18 17:11:32 +02:00
parent c2a001eea4
commit 2b59c7db1f
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
---------------------------------------------------------------------------
Version 3.2.2 (stable), ????-??-??
- Fixed syntaxlogic bugs in proxy utilisation, thanks to forum
member pierre: http://kb.monitorware.com/post-t10570.html#p20033
---------------------------------------------------------------------------
Version 3.2.1 (stable), 2011-04-12
- Fixed timezone parsing in GetEventTime function. This caused problems
reading date/time strings with negative timezone offsets.

View File

@ -216,10 +216,10 @@ function CheckUserLogin( $username, $password )
// ---
// --- Now we check for an PhpLogCon Update
if ( strlen(GetConfigSetting("UseProxyServerForRemoteQueries", "") > 0) )
if ( strlen(GetConfigSetting("UseProxyServerForRemoteQueries", "")) > 0 )
{
// Proxy Server configured, create a context with proxy option!
$opts = array('http' => array('proxy' => 'tcp://' + GetConfigSetting("UseProxyServerForRemoteQueries", ""), 'request_fulluri' => true));
$opts = array('http' => array('proxy' => 'tcp://' . GetConfigSetting("UseProxyServerForRemoteQueries", ""), 'request_fulluri' => true));
$context = stream_context_create($opts);
// Create handle with my context!