3 require_once('init.php');
4 require_once('cmd.php');
5 require_once('DebugNone.php');
7 // handle http proxy when using file_get_contents
8 if (CONST_HTTP_Proxy) {
9 $proxy = 'tcp://' . CONST_HTTP_Proxy_Host . ':' . CONST_HTTP_Proxy_Port;
11 if (CONST_HTTP_Proxy_Login != null && CONST_HTTP_Proxy_Login != '' && CONST_HTTP_Proxy_Password != null && CONST_HTTP_Proxy_Password != '') {
12 $auth = base64_encode(CONST_HTTP_Proxy_Login . ':' . CONST_HTTP_Proxy_Password);
13 $aHeaders = array("Proxy-Authorization: Basic $auth");
18 'request_fulluri' => true,
23 'request_fulluri' => true,
27 stream_context_set_default($aContext);