2         require_once('init.php');
 
   3         require_once('cmd.php');
 
   5         // handle http proxy when using file_get_contents
 
   6         if (CONST_HTTP_Proxy) {
 
   7           $proxy = 'tcp://' . CONST_HTTP_Proxy_Host . ':' . CONST_HTTP_Proxy_Port;
 
   9           if(CONST_HTTP_Proxy_Login != null && CONST_HTTP_Proxy_Login != '' && CONST_HTTP_Proxy_Password != null && CONST_HTTP_Proxy_Password != '') {
 
  10             $auth = base64_encode(CONST_HTTP_Proxy_Login . ':' . CONST_HTTP_Proxy_Password);
 
  11             $aHeaders = array("Proxy-Authorization: Basic $auth");
 
  16               'request_fulluri' => true,
 
  21               'request_fulluri' => true,
 
  25           stream_context_set_default($aContext);