From d5f3447cddcdaebfd4a61e1583614c5fecd6d9b3 Mon Sep 17 00:00:00 2001 From: 667bdrm <416680+667bdrm@users.noreply.github.com> Date: Sat, 28 Nov 2020 23:27:22 +0300 Subject: [PATCH] Updated documentation for newly added SFTP driver, removed unavailable demo url, Drupal integration info update, added SFTP volume example and dependencies install info. --- LICENSE.md | 2 +- README.md | 7 +++---- php/autoload.php | 1 + php/connector.maximal.php-dist | 15 +++++++++++++++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index a8ccb0b4b..8a42fc877 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ elFinder is issued under a 3-clauses BSD license. -Copyright (c) 2009-2018, Studio 42 +Copyright (c) 2009-2020, Studio 42 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/README.md b/README.md index a9487459d..0ed9f5156 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Features upload, create folder/file, rename, etc.) * High performance server backend and light client UI * Multi-root support - * Local file system, MySQL, FTP, Box, Dropbox, GoogleDrive and OneDrive volume storage drivers + * Local file system, MySQL, FTP, SFTP, Box, Dropbox, GoogleDrive and OneDrive volume storage drivers * Support AWS S3, Azure, Digital Ocean Spaces and more with [League\Flysystem](https://github.com/barryvdh/elfinder-flysystem-driver) Flysystem driver * Cloud storage (Box, Dropbox, GoogleDrive and OneDrive) drivers * Background file/folder upload with Drag & Drop HTML5 support @@ -134,7 +134,6 @@ Demo sites ------------ **2.1.x Nightly** + https://studio-42.github.io/elFinder/ (with CORS) - + https://hypweb.net/elFinder-nightly/demo/2.1/ FAQs ------------ @@ -178,7 +177,7 @@ Hint: [How to load CSS with RequireJS?](https://github.com/Studio-42/elFinder/wi 3rd party Integrations -------------------- * [Django](https://github.com/mikery/django-elfinder) - * [Drupal](https://www.drupal.org/project/elfinder) + * [Drupal](https://gitlab.com/667bdrm/elfinder) * [Laravel](https://github.com/barryvdh/laravel-elfinder) * [Roundcube](https://github.com/Offerel/roundcube_elfinder) * [Symfony](https://github.com/helios-ag/FMElfinderBundle) @@ -203,7 +202,7 @@ Authors * Current main developer: Naoki Sawada * Chief developer: Dmitry "dio" Levashov * Maintainer: Troex Nevelin - * Developers: Alexey Sukhotin , Naoki Sawada + * Developers: Alexey Sukhotin, Naoki Sawada * Icons: PixelMixer, [Yusuke Kamiyamane](http://p.yusukekamiyamane.com), [Icons8](https://icons8.com) We hope our tools will be helpful for you. diff --git a/php/autoload.php b/php/autoload.php index 720a4fd7c..a72fcd7a6 100644 --- a/php/autoload.php +++ b/php/autoload.php @@ -26,6 +26,7 @@ function elFinderAutoloader($name) 'elFinderVolumeGroup' => 'elFinderVolumeGroup.class.php', 'elFinderVolumeLocalFileSystem' => 'elFinderVolumeLocalFileSystem.class.php', 'elFinderVolumeMySQL' => 'elFinderVolumeMySQL.class.php', + 'elFinderVolumeSFTPphpseclib' => 'elFinderVolumeSFTPphpseclib.class.php', 'elFinderVolumeTrash' => 'elFinderVolumeTrash.class.php', ); if (isset($map[$name])) { diff --git a/php/connector.maximal.php-dist b/php/connector.maximal.php-dist index ce7592a9d..5368fc223 100644 --- a/php/connector.maximal.php-dist +++ b/php/connector.maximal.php-dist @@ -426,6 +426,21 @@ $opts['roots'][] = array_merge($tmbConfig, array( 'accessToken' => '', // @JSON String access token including refresh token )); +// SFTP volume +// Require phpseclib 1 installed (http://phpseclib.sourceforge.net) +// pear install example: +//sudo pear channel-discover phpseclib.sourceforge.net +//sudo pear remote-list -c phpseclib +//sudo pear install phpseclib/Net_SFTP +/*$opts['roots'][] = array_merge($tmbConfig, array( + 'phash' => 'g1_Lw', // set parent to Volume group (g1_) root "/" (Lw) + 'driver' => 'SFTPphpseclib', + 'host' => '127.0.0.1', + 'path' => '/tmp', // or folder id as root + 'user' => 'test', // @JSON String access token including refresh token + 'pass' => 'test', +));*/ + // run elFinder $connector = new elFinderConnector(new elFinder($opts));