Make WordPress Core


Ignore:
Timestamp:
03/02/2008 08:17:30 PM (18 years ago)
Author:
ryan
Message:

Remove trailing whites.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php

    r7126 r7130  
    55    var $errors;
    66    var $options = array();
    7    
     7
    88    var $wp_base = '';
    99    var $permission = null;
    10    
     10
    1111    var $filetypes = array(
    1212                            'php'=>FTP_ASCII,
     
    1717                            'htm'=>FTP_ASCII,
    1818                            'xml'=>FTP_ASCII,
    19                            
     19
    2020                            'jpg'=>FTP_BINARY,
    2121                            'png'=>FTP_BINARY,
     
    2323                            'bmp'=>FTP_BINARY
    2424                            );
    25    
     25
    2626    function WP_Filesystem_ftpsockets($opt='') {
    2727        $this->errors = new WP_Error();
     
    5353
    5454        if ( empty ($opt['password']) )
    55             $this->errors->add('empty_password', __('FTP password is required'));   
     55            $this->errors->add('empty_password', __('FTP password is required'));
    5656        else
    5757            $this->options['password'] = $opt['password'];
     
    9191        if( empty( $base ) ) $base = '/';
    9292        if( '/' != substr($base, -1) ) $base .= '/';
    93        
     93
    9494        if($echo) echo __('Changing to ') . $base  .'<br>';
    9595        if( false === $this->ftp->chdir($base) )
     
    158158        }
    159159        $this->ftp->SetType($type);
    160        
     160
    161161        $temp = tmpfile();
    162162        fwrite($temp,$contents);
     
    174174        return false;
    175175    }
    176    
     176
    177177    function chmod($file,$mode=false,$recursive=false){
    178178        if( ! $mode )
     
    192192        return true;
    193193    }
    194    
     194
    195195    function chown($file,$owner,$recursive=false){
    196196        return false;
    197197    }
    198    
     198
    199199    function owner($file){
    200200        $dir = $this->dirlist($file);
    201201        return $dir[$file]['owner'];
    202202    }
    203    
     203
    204204    function getchmod($file){
    205205        $dir = $this->dirlist($file);
     
    235235            $info = 'u';
    236236        }
    237        
     237
    238238        // Owner
    239239        $info .= (($perms & 0x0100) ? 'r' : '-');
     
    242242                    (($perms & 0x0800) ? 's' : 'x' ) :
    243243                    (($perms & 0x0800) ? 'S' : '-'));
    244        
     244
    245245        // Group
    246246        $info .= (($perms & 0x0020) ? 'r' : '-');
     
    249249                    (($perms & 0x0400) ? 's' : 'x' ) :
    250250                    (($perms & 0x0400) ? 'S' : '-'));
    251        
     251
    252252        // World
    253253        $info .= (($perms & 0x0004) ? 'r' : '-');
     
    386386        $ret = array();
    387387        foreach ( $list as $struc ) {
    388            
     388
    389389            if ( 'd' == $struc['type'] ) {
    390390                $struc['files'] = array();
Note: See TracChangeset for help on using the changeset viewer.