X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/effd8e12af440586594a18a04beb33abed260d15..65ee7a80025fae93287960a6cb1f4026f99cd7f3:/lib/init-cmd.php diff --git a/lib/init-cmd.php b/lib/init-cmd.php index d8521ed7..50c709c9 100644 --- a/lib/init-cmd.php +++ b/lib/init-cmd.php @@ -2,26 +2,27 @@ require_once('init.php'); require_once('cmd.php'); +require_once('DebugNone.php'); // handle http proxy when using file_get_contents if (CONST_HTTP_Proxy) { $proxy = 'tcp://' . CONST_HTTP_Proxy_Host . ':' . CONST_HTTP_Proxy_Port; $aHeaders = array(); - if(CONST_HTTP_Proxy_Login != null && CONST_HTTP_Proxy_Login != '' && CONST_HTTP_Proxy_Password != null && CONST_HTTP_Proxy_Password != '') { + if (CONST_HTTP_Proxy_Login != null && CONST_HTTP_Proxy_Login != '' && CONST_HTTP_Proxy_Password != null && CONST_HTTP_Proxy_Password != '') { $auth = base64_encode(CONST_HTTP_Proxy_Login . ':' . CONST_HTTP_Proxy_Password); $aHeaders = array("Proxy-Authorization: Basic $auth"); } $aContext = array( - 'http' => array( - 'proxy' => $proxy, - 'request_fulluri' => true, - 'header' => $aHeaders - ), - 'https' => array( - 'proxy' => $proxy, - 'request_fulluri' => true, - 'header' => $aHeaders - ) - ); + 'http' => array( + 'proxy' => $proxy, + 'request_fulluri' => true, + 'header' => $aHeaders + ), + 'https' => array( + 'proxy' => $proxy, + 'request_fulluri' => true, + 'header' => $aHeaders + ) + ); stream_context_set_default($aContext); }