Hi,
I upload files using ssh to my server and I don't want to setup a FTP server only for oxwall.
I know that some people had trouble with it because when I first installed oxwall, I searched install forum to find a solution.
I use the one I provide here since a long time and I wanted to share it for a long time so here it is.
I attached 2 files: the dirty way and the clean way.
I prefer the clean one because it could be added to oxwall main stream (that would be cool) but if you just want to do it quick and dirty, the dirty way is available for you.
I think that if enough people say it's cool, it could be added in native oxwall so if you like it, say it!
Here comes details about what I've done:
*****************************
clean way, add a setting option:
*****************************
ow_system_plugins/admin/controllers/settings.php:
v 1.5.1 (maybe earlier) -> 1.6.0
added lines: 92, 568, 569, 679
what it does:
- 92: load parameter use_ftp
- 568, 569: add parameter in form
- 679: save parameter use_ftp
ow_system_plugins/admin/views/controllers/settings_index.html:
v 1.5.1 (maybe earlier) -> 1.6.0
added lines: 34 -> 38
need new translations:
- admin+site_use_ftp (Use FTP)
- admin+site_use_ftp_desc (Uncheck this box if you don't want to use FTP for upgrade)
what it does: add a checkbox in parameters
ow_system_plugins/base/bol/plugin_service.php:
1.6.0 (can work with previous version but files are not identical so you have to copy the 2 lines manually)
added lines: 721, 722
what it does: skip ftp connection to let direct file access
ow_utilities/file.php:
1.6.0 (can work with previous version but files are not identical so you have to copy the 2 functions manually)
added lines: 321 -> 375
what it does: add a function to create directory and a function to put files of plugin using direct file access
********************************
dirty version (simply wipe out ftp):
********************************
ow_system_plugins/base/bol/plugin_service.php:
1.6.0 (can work with previous version but files are not identical so you have to copy the 2 lines manually)
added lines: 721, 722
what it does: skip ftp connection to let direct file access
ow_utilities/file.php:
1.6.0 (can work with previous version but files are not identical so you have to copy the 2 functions manually)
added lines: 321 -> 375
what it does: add a function to create directory and a function to put files of plugin using direct file access
Regis.