|
@@ 230-232 (lines=3) @@
|
| 227 |
|
* @author Dmitry (dio) Levashov |
| 228 |
|
**/ |
| 229 |
|
protected function connect() { |
| 230 |
|
if (!($this->connect = ftp_connect($this->options['host'], $this->options['port'], $this->options['timeout']))) { |
| 231 |
|
return $this->setError('Unable to connect to FTP server '.$this->options['host']); |
| 232 |
|
} |
| 233 |
|
if (!ftp_login($this->connect, $this->options['user'], $this->options['pass'])) { |
| 234 |
|
$this->umount(); |
| 235 |
|
return $this->setError('Unable to login into '.$this->options['host']); |
|
@@ 233-236 (lines=4) @@
|
| 230 |
|
if (!($this->connect = ftp_connect($this->options['host'], $this->options['port'], $this->options['timeout']))) { |
| 231 |
|
return $this->setError('Unable to connect to FTP server '.$this->options['host']); |
| 232 |
|
} |
| 233 |
|
if (!ftp_login($this->connect, $this->options['user'], $this->options['pass'])) { |
| 234 |
|
$this->umount(); |
| 235 |
|
return $this->setError('Unable to login into '.$this->options['host']); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
// try switch utf8 mode |
| 239 |
|
if ($this->encoding) { |