wp/wp-admin/includes/class-ftp.php
changeset 5 5e2f62d02dcd
parent 0 d970ebf37754
child 7 cf61fcea0001
equal deleted inserted replaced
4:346c88efed21 5:5e2f62d02dcd
   502 
   502 
   503 	function rawlist($pathname="", $arg="") {
   503 	function rawlist($pathname="", $arg="") {
   504 		return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "LIST", "rawlist");
   504 		return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "LIST", "rawlist");
   505 	}
   505 	}
   506 
   506 
   507 	function nlist($pathname="") {
   507 	function nlist($pathname="", $arg="") {
   508 		return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist");
   508 		return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist");
   509 	}
   509 	}
   510 
   510 
   511 	function is_exists($pathname) {
   511 	function is_exists($pathname) {
   512 		return $this->file_exists($pathname);
   512 		return $this->file_exists($pathname);
   901 	$prefix = ( PHP_SHLIB_SUFFIX == 'dll' ) ? 'php_' : '';
   901 	$prefix = ( PHP_SHLIB_SUFFIX == 'dll' ) ? 'php_' : '';
   902 	@dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX );
   902 	@dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX );
   903 	$mod_sockets = extension_loaded( 'sockets' );
   903 	$mod_sockets = extension_loaded( 'sockets' );
   904 }
   904 }
   905 
   905 
   906 require_once "class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
   906 require_once dirname( __FILE__ ) . "/class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php";
   907 ?>