FTP driver open file/download

This commit is contained in:
Dmitry (dio) Levashov
2011-11-05 03:23:13 +04:00
parent 675a8d8395
commit 4f66108b6b
6 changed files with 51 additions and 18 deletions
+2 -2
View File
@@ -303,7 +303,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
* @author Dmitry (dio) Levashov
**/
protected function _subdirs($path) {
echo "_subdirs $path<br>";
if (($dir = dir($path))) {
$dir = dir($path);
while (($entry = $dir->read()) !== false) {
@@ -394,7 +394,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
* @author Dmitry (dio) Levashov
**/
protected function _fopen($path, $mode='rb') {
return @fopen($path, $mode);
return @fopen($path, 'r');
}
/**