|
@@ 263-265 (lines=3) @@
|
| 260 |
|
**/ |
| 261 |
|
protected function connect() |
| 262 |
|
{ |
| 263 |
|
if (! ($this->connect = ftp_connect($this->options['host'], $this->options['port'], $this->options['timeout']))) { |
| 264 |
|
return $this->setError('Unable to connect to FTP server '.$this->options['host']); |
| 265 |
|
} |
| 266 |
|
if (! ftp_login($this->connect, $this->options['user'], $this->options['pass'])) { |
| 267 |
|
$this->umount(); |
| 268 |
|
|
|
@@ 266-270 (lines=5) @@
|
| 263 |
|
if (! ($this->connect = ftp_connect($this->options['host'], $this->options['port'], $this->options['timeout']))) { |
| 264 |
|
return $this->setError('Unable to connect to FTP server '.$this->options['host']); |
| 265 |
|
} |
| 266 |
|
if (! ftp_login($this->connect, $this->options['user'], $this->options['pass'])) { |
| 267 |
|
$this->umount(); |
| 268 |
|
|
| 269 |
|
return $this->setError('Unable to login into '.$this->options['host']); |
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
// try switch utf8 mode |
| 273 |
|
if ($this->encoding) { |