| @@ 379-387 (lines=9) @@ | ||
| 376 | ftp_Tell(227, "Entering Passive Mode ($port)"); |
|
| 377 | } |
|
| 378 | break; |
|
| 379 | case 'CDUP': |
|
| 380 | $cwd=$FTP->store->make_path($FTP->cwd, ".."); |
|
| 381 | if ($FTP->store->exists($FTP->site.$cwd)) { |
|
| 382 | $FTP->cwd=$cwd; |
|
| 383 | ftp_Tell(250, "CDUP succesfull"); |
|
| 384 | } else { |
|
| 385 | ftp_Tell(550, "CDUP not succesfull"); |
|
| 386 | } |
|
| 387 | break; |
|
| 388 | case 'CWD': |
|
| 389 | /* if CWD path is absolute then listmode is set to |
|
| 390 | the default value */ |
|
| @@ 448-458 (lines=11) @@ | ||
| 445 | } |
|
| 446 | ||
| 447 | break; |
|
| 448 | default: |
|
| 449 | if ($FTP->store->exists($path)) { |
|
| 450 | $size = $FTP->store->call( |
|
| 451 | "ftp.$listMode.size.phtml", |
|
| 452 | "", |
|
| 453 | $FTP->store->get($path)); |
|
| 454 | ftp_Tell(213, (int)$size[0]); |
|
| 455 | } else { |
|
| 456 | ftp_Tell(550, "No such file or directory"); |
|
| 457 | } |
|
| 458 | break; |
|
| 459 | } |
|
| 460 | break; |
|
| 461 | ||