Changeset 52978 for trunk/src/wp-admin/includes/class-ftp.php
- Timestamp:
- 03/22/2022 04:23:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-ftp.php
r47902 r52978 335 335 $this->_ready=true; 336 336 $syst=$this->systype(); 337 if(!$syst) $this->SendMSG("Can 't detect remote OS");337 if(!$syst) $this->SendMSG("Cannot detect remote OS"); 338 338 else { 339 339 if(preg_match("/win|dos|novell/i", $syst[0])) $this->OS_remote=FTP_OS_Windows; … … 343 343 $this->SendMSG("Remote OS: ".$this->OS_FullName[$this->OS_remote]); 344 344 } 345 if(!$this->features()) $this->SendMSG("Can 't get features list. All supported - disabled");345 if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled"); 346 346 else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); 347 347 return TRUE; … … 372 372 $this->SendMSG("Authentication succeeded"); 373 373 if(empty($this->_features)) { 374 if(!$this->features()) $this->SendMSG("Can 't get features list. All supported - disabled");374 if(!$this->features()) $this->SendMSG("Cannot get features list. All supported - disabled"); 375 375 else $this->SendMSG("Supported features: ".implode(", ", array_keys($this->_features))); 376 376 } … … 481 481 } 482 482 if($this->_curtype!=FTP_BINARY) { 483 $this->PushError("restore", "can 't restore in ASCII mode");483 $this->PushError("restore", "cannot restore in ASCII mode"); 484 484 return FALSE; 485 485 } … … 554 554 $fp = @fopen($localfile, "w"); 555 555 if (!$fp) { 556 $this->PushError("get","can 't open local file", "Cannot create \"".$localfile."\"");556 $this->PushError("get","cannot open local file", "Cannot create \"".$localfile."\""); 557 557 return FALSE; 558 558 } … … 611 611 if(is_null($remotefile)) $remotefile=$localfile; 612 612 if (!file_exists($localfile)) { 613 $this->PushError("put","can 't open local file", "No such file or directory \"".$localfile."\"");613 $this->PushError("put","cannot open local file", "No such file or directory \"".$localfile."\""); 614 614 return FALSE; 615 615 } … … 617 617 618 618 if (!$fp) { 619 $this->PushError("put","can 't open local file", "Cannot read file \"".$localfile."\"");619 $this->PushError("put","cannot open local file", "Cannot read file \"".$localfile."\""); 620 620 return FALSE; 621 621 } … … 650 650 $local=realpath($local); 651 651 if(!@file_exists($local)) { 652 $this->PushError("mput","can 't open local folder", "Cannot stat folder \"".$local."\"");652 $this->PushError("mput","cannot open local folder", "Cannot stat folder \"".$local."\""); 653 653 return FALSE; 654 654 } … … 663 663 closedir($handle); 664 664 } else { 665 $this->PushError("mput","can 't open local folder", "Cannot read folder \"".$local."\"");665 $this->PushError("mput","cannot open local folder", "Cannot read folder \"".$local."\""); 666 666 return FALSE; 667 667 } … … 683 683 $list=$this->rawlist($remote, "-lA"); 684 684 if($list===false) { 685 $this->PushError("mget","can 't read remote folder list", "Can't read remote folder \"".$remote."\" contents");685 $this->PushError("mget","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); 686 686 return FALSE; 687 687 } … … 689 689 if(!@file_exists($local)) { 690 690 if(!@mkdir($local)) { 691 $this->PushError("mget","can 't create local folder", "Cannot create folder \"".$local."\"");691 $this->PushError("mget","cannot create local folder", "Cannot create folder \"".$local."\""); 692 692 return FALSE; 693 693 } … … 701 701 if($el["type"]=="d") { 702 702 if(!$this->mget($remote."/".$el["name"], $local."/".$el["name"], $continious)) { 703 $this->PushError("mget", "can 't copy folder", "Can't copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");703 $this->PushError("mget", "cannot copy folder", "Cannot copy remote folder \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); 704 704 $ret=false; 705 705 if(!$continious) break; … … 707 707 } else { 708 708 if(!$this->get($remote."/".$el["name"], $local."/".$el["name"])) { 709 $this->PushError("mget", "can 't copy file", "Can't copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\"");709 $this->PushError("mget", "cannot copy file", "Cannot copy remote file \"".$remote."/".$el["name"]."\" to local \"".$local."/".$el["name"]."\""); 710 710 $ret=false; 711 711 if(!$continious) break; … … 722 722 $list=$this->rawlist($remote, "-la"); 723 723 if($list===false) { 724 $this->PushError("mdel","can 't read remote folder list", "Can't read remote folder \"".$remote."\" contents");724 $this->PushError("mdel","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); 725 725 return false; 726 726 } … … 743 743 } else { 744 744 if (!$this->delete($remote."/".$el["name"])) { 745 $this->PushError("mdel", "can 't delete file", "Can't delete remote file \"".$remote."/".$el["name"]."\"");745 $this->PushError("mdel", "cannot delete file", "Cannot delete remote file \"".$remote."/".$el["name"]."\""); 746 746 $ret=false; 747 747 if(!$continious) break; … … 751 751 752 752 if(!$this->rmdir($remote)) { 753 $this->PushError("mdel", "can 't delete folder", "Can't delete remote folder \"".$remote."/".$el["name"]."\"");753 $this->PushError("mdel", "cannot delete folder", "Cannot delete remote folder \"".$remote."/".$el["name"]."\""); 754 754 $ret=false; 755 755 } … … 827 827 $list=$this->rawlist($remote, "-la"); 828 828 if($list===false) { 829 $this->PushError("dirlist","can 't read remote folder list", "Can't read remote folder \"".$remote."\" contents");829 $this->PushError("dirlist","cannot read remote folder list", "Cannot read remote folder \"".$remote."\" contents"); 830 830 return false; 831 831 }
Note: See TracChangeset
for help on using the changeset viewer.