- Timestamp:
- 08/14/2008 06:30:38 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-ftpsockets.php
r8600 r8645 1 1 <?php 2 /** 3 * WordPress FTP Sockets Filesystem. 4 * 5 * @package WordPress 6 * @subpackage Filesystem 7 */ 8 9 /** 10 * WordPress Filesystem Class for implementing FTP Sockets. 11 * 12 * @since 2.5 13 * @package WordPress 14 * @subpackage Filesystem 15 * @uses WP_Filesystem_Base Extends class 16 */ 2 17 class WP_Filesystem_ftpsockets extends WP_Filesystem_Base { 3 18 var $ftp = false; … … 23 38 ); 24 39 25 function WP_Filesystem_ftpsockets($opt ='') {40 function WP_Filesystem_ftpsockets($opt = '') { 26 41 $this->method = 'ftpsockets'; 27 42 $this->errors = new WP_Error(); … … 87 102 } 88 103 89 function get_contents($file, $type = '', $resumepos = 0) {104 function get_contents($file, $type = '', $resumepos = 0) { 90 105 if( ! $this->exists($file) ) 91 106 return false; … … 113 128 } 114 129 115 function get_contents_array($file) {130 function get_contents_array($file) { 116 131 return explode("\n", $this->get_contents($file) ); 117 132 } … … 152 167 } 153 168 154 function chmod($file, $mode = false, $recursive = false ) {169 function chmod($file, $mode = false, $recursive = false ) { 155 170 if( ! $mode ) 156 171 $mode = $this->permission; … … 252 267 } 253 268 254 function touch($file, $time = 0, $atime = 0 ) {269 function touch($file, $time = 0, $atime = 0 ) { 255 270 return false; 256 271 } … … 312 327 } 313 328 314 function __destruct() {329 function __destruct() { 315 330 $this->ftp->quit(); 316 331 } 317 332 } 333 318 334 ?>
Note: See TracChangeset
for help on using the changeset viewer.