![]() |
|
Filemanager Module Working Sentora 2.0.1, 2.0.2 - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Public Support Forums v2.x.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=66) +--- Forum: 3rd Party Module Support v2.x.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=71) +---- Forum: Active v2.x.x Modules (https://senforums.mach-hosting.com/forumdisplay.php?fid=78) +---- Thread: Filemanager Module Working Sentora 2.0.1, 2.0.2 (/showthread.php?tid=13051) |
Filemanager Module Working Sentora 2.0.1, 2.0.2 - franmm25 - 06-03-2024 The First Download Filemanager : elFinder ================================================ Note : Only por Admin Users, not for give access customers, etc ================================================ Quote:https://studio-42.github.io/elFinder/#elf_l1_Lw Upload inside ( Login as Root ) : From SSH : Quote:mkdir -p /etc/sentora/panel/etc/apps/Filemanager Quote:cd /etc/sentora/panel/etc/apps/Filemanager Quote:wget https://github.com/Studio-42/elFinder/archive/2.1.65.zip Quote:unzip elFinder-2.1.65-2.zip Finally URL : Quote:cd /etc/sentora/panel/etc/apps/Filemanager/elFinder-2.1.65 Access from Sentora : Quote:https://cp.yourdomain.com/etc/apps/Filemanager/elFinder-2.1.65 Configurate is inside folder Filemanager elFinder, config inside folder called php, change default name to connector.minimal.php-dist to connector.minimal.php, and edit your paths Inside folder with Filemanager Script you can create simple php file for access with the name that you want ( for example index,php or other ) and this content : ( https://cp.yourdomain.com/etc/apps/Filemanager/elFinder-2.1.65/index.php) Quote:<!DOCTYPE html> For access from panel create simple module for install from Sentora, you can download from here in attachments When Install module you need go to modules inside Sentora and put your URL to the script, inside controller.ext.php The path is : cd /etc/sentora/panel/modules/fileManager_Me/code/ /etc/sentora/panel/modules/fileManager_Me/code/controller.ext.php Quote:class module_controller extends ctrl_module And all ready for access you Filemanager without ptoblmes, important put some security access for Filemanager as .htpassword, etc, or simple code i php for login Regards RE: Filemanager Module Working Sentora 2.0.1, 2.0.2 - TGates - 06-05-2024 This could be updated to install like a normal module. It is a bit confusing for a novice user. Also, the code should be deployed to /etc/apps/elfinder/ or /etc/apps/filemanager/ to keep the access URL easy for clients to remember ![]() Parts of the code from my Sentastico module would be very helpful in making the module: -Getting a file (elfinder.zip) and deploying it to the proper folder. Parts of the code from my SenAds module would also be helpful: -Writing/creating the config file automatically. Depending on the elFinder.zip size, I'd include it in the module.zpp package. Then use the install.run hook to unzip and move the files to the /apps/Filemanager/ location and create the config file. I haven't used elFinder in years, does it prompt the client to enter username and password? How secure is it? How active is it's creator? RE: Filemanager Module Working Sentora 2.0.1, 2.0.2 - franmm25 - 06-05-2024 I implemented this solution because the other file manager plugin wasn't working and was causing errors. I created this for a quick fix, and it works perfectly and securely. Users can specify different paths, etc. It's important to include a login for accessing the script. I have seen some posts recently regarding this issue, and I also needed a solution for editing files. I think the best approach is to place the script in the same folder as the applications (webmail, etc.). This solution is intended for admin users, not for regular members. Regards. RE: Filemanager Module Working Sentora 2.0.1, 2.0.2 - TGates - 06-05-2024 (06-05-2024, 11:47 AM)franmm25 Wrote: I implemented this solution because the other file manager plugin wasn't working and was causing errors. I created this for a quick fix, and it works perfectly and securely. Users can specify different paths, etc. It's important to include a login for accessing the script. Yes, the apps folder is a good location. If for zadmin only, you may want to update your original post to explain that. 'this is for zadmin only' and explain why. Other's may install it and try to use it as an actual client used module. RE: Filemanager Module Working Sentora 2.0.1, 2.0.2 - franmm25 - 06-05-2024 Yes, of course, the idea is to provide a file and editing system for a panel admin, with single access, not for clients, the client solution would have to be intended for their domains, here if an additional module system is not created, All the documents could be seen, unless, as I say, a system was created that discriminated by the client's ID, which could be done, and not modularly integrated with Sentora but reading the domains of each client, to only allow access to those and not to others, but I will put what you told me in the post, to see if I also look at possible integrations with other Filemanagers, greetings |