File: phpbb/file_downloader.php
Unmodified
Added
Modified
Removed
Line 42 | Line 42 |
---|
$this->error_number = 0; $this->error_string = '';
|
$this->error_number = 0; $this->error_string = '';
|
if ($socket = @fsockopen(($port == 443 ? 'ssl://' : '') . $host, $port, $this->error_number, $this->error_string, $timeout))
| if (function_exists('fsockopen') && $socket = @fsockopen(($port == 443 ? 'ssl://' : '') . $host, $port, $this->error_number, $this->error_string, $timeout) )
|
{ @fputs($socket, "GET $directory/$filename HTTP/1.0\r\n"); @fputs($socket, "HOST: $host\r\n");
| { @fputs($socket, "GET $directory/$filename HTTP/1.0\r\n"); @fputs($socket, "HOST: $host\r\n");
|