This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[MODULE] Net2FTP-Filemanager
#1
[MODULE] Net2FTP-Filemanager
Hi all,

I found this post about Net2FTP-Filemanager, and it was a little outdated and the Net2FTP folder was placed in the modules directory.

Thank you Jayster for creating the module, although I have updated it and changed it to Net2FTP v1.1 Smile.

Module By: Jayster
Updated By: Betatester3.0

What was done:
Code cleanup.
Added remove.run to remove the Net2FTP folder after it has been deleted
Added zip function to minimize the size of "Net2FTP_Frontend.zip".
Removes all unwanted files after they are moved.
Changed the root directory for Net2FTP:
FROM: /etc/sentora/panel/modules/net2ftp-filemanager/net2ftp_main
TO: /etc/sentora/panel/etc/apps/Net2FTP
reason for relocation: displays the file location to where the modules to the panel are :\.
Planning to add an iframe later on

Note: after you remove the module if you are using log mode, you will manually have to remove any database entries.
Code:
Install:
zppy repo add zppy-repo.000webhostapp.com 
zppy update
zppy install Net2FTP-Filemanager
Remove:
zppy remove Net2FTP-Filemanager
Screenshots:
[Image: img1.png]

[Image: img2.png]

Code:
[root@panel ~]# zppy remove Net2FTP-Filemanager -y
Removing Net2FTP-Filemanager module..
Net2FTP_Remover: /etc/apps/Net2FTP has been removed successfully
Net2FTP_Remover: PLEASE NOTE YOU WILL HAVE TO MANUALLY REMOVE DATABASE ENTRIES.
[root@panel ~]# zppy install Net2FTP-Filemanager -y
Module to be installed Net2FTP-Filemanager
--2017-09-03 17:42:40--  http://zppy-repo.000webhostapp.com/Net2FTP-Filemanager.zpp
Resolving zppy-repo.000webhostapp.com (zppy-repo.000webhostapp.com)... 145.14.145.33, 2a02:4780:dead:bf92::1
Connecting to zppy-repo.000webhostapp.com (zppy-repo.000webhostapp.com)|145.14.145.33|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5735619 (5.5M)
Saving to: ‘Net2FTP-Filemanager.zpp’

100%[==============================================================================>] 5,735,619   1.44MB/s   in 4.5s

2017-09-03 17:42:46 (1.21 MB/s) - ‘Net2FTP-Filemanager.zpp’ saved [5735619/5735619]

Net2FTP_Installer: Creating Folder /etc/sentora/panel/etc/apps/Net2FTP/
Net2FTP_Installer: Moving Net2FTP_Frontend.zip to /etc/sentora/panel/etc/apps/Net2FTP/
Net2FTP_Installer: --> Net2FTP Frontend extracted to /etc/sentora/panel/etc/apps/Net2FTP successfully
Net2FTP_Installer: Folder Net2FTP Frontend & ZipFile Net2FTP_Frontend.zip have been deleted
Net2FTP_Installer: Cleaning up unnecessary files, please be patient....
Net2FTP_Installer: Installation complete!
Net2FTP_Installer: You can now ACTIVATE the module using Module Admin :).
For more information on how to configure Net2FTP, ReadME more folder location /etc/sentora/panel/etc/apps/Net2FTP
Module installed successfully!

Please report any errors if you find any  Angel
-BetaTester3.0  ||  Just Another Sentora User. 

Did you know, Sentora has a full Support Documentation ?
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw

Reply
Thanks given by: Jayster
#2
RE: [MODULE] Net2FTP-Filemanager
UPDATED:
fixed bug
added chown function to give folder correct permission 'apache:apache:.

please use the update

Code:
zppy remove Net2FTP-Filemanager -y
zppy update
zppy install Net2FTP-Filemanager
-BetaTester3.0  ||  Just Another Sentora User. 

Did you know, Sentora has a full Support Documentation ?
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw

Reply
Thanks given by:
#3
RE: [MODULE] Net2FTP-Filemanager
betatester3.0, if the module makes DB entries, you can do something like below in the remove.run file:

PHP Code:
<?php
// Sentastico Open Source Script Installer for Sentora CP
// Updated By       : TGates for Sentora
// Additional Work  : Durandle, Mudasir Mirza
// Contact Email    : tgates@sentora.org
// Original Author  : Bobby Allen

require_once('cnf/db.php');
require_once(
'dryden/db/driver.class.php');
require_once(
'dryden/debug/logger.class.php');
require_once(
'dryden/runtime/dataobject.class.php');
require_once(
'dryden/sys/versions.class.php');
require_once(
'dryden/ctrl/options.class.php');
require_once(
'dryden/ctrl/auth.class.php');
require_once(
'dryden/ctrl/users.class.php');
require_once(
'dryden/fs/director.class.php');
require_once(
'inc/dbc.inc.php');

function 
removeModule(){
 
   global $zdbh;
 
       
    
//delete table
 
   $stmt $zdbh->prepare("DROP TABLE `x_sentastico`");
 
   $stmt->execute();
}

removeModule();
?>
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: betatester3.0
#4
RE: [MODULE] Net2FTP-Filemanager
(09-17-2017, 12:56 AM)TGates Wrote: @[betatester3.0], if the module makes DB entries, you can do something like below in the remove.run file:

PHP Code:
<?php
// Sentastico Open Source Script Installer for Sentora CP
// Updated By       : TGates for Sentora
// Additional Work  : Durandle, Mudasir Mirza
// Contact Email    : tgates@sentora.org
// Original Author  : Bobby Allen

require_once('cnf/db.php');
require_once(
'dryden/db/driver.class.php');
require_once(
'dryden/debug/logger.class.php');
require_once(
'dryden/runtime/dataobject.class.php');
require_once(
'dryden/sys/versions.class.php');
require_once(
'dryden/ctrl/options.class.php');
require_once(
'dryden/ctrl/auth.class.php');
require_once(
'dryden/ctrl/users.class.php');
require_once(
'dryden/fs/director.class.php');
require_once(
'inc/dbc.inc.php');

function 
removeModule(){
 
   global $zdbh;
 
       
    
//delete table
 
   $stmt $zdbh->prepare("DROP TABLE `x_sentastico`");
 
   $stmt->execute();
}

removeModule();
?>

Thanks TGates, i will use that one my other module. Although Net2FTP does not need db entries, unless the owner of the panel would like to log the users logging's and details they can have the option to store it in the db but if they do not want to log it will not upload any db entries.

You could give the module a test and see if it works both ways with db and without db on your Linux system Smile
need someone to find them bugs lol
-BetaTester3.0  ||  Just Another Sentora User. 

Did you know, Sentora has a full Support Documentation ?
If I helped +rep & Thanks is appreciated.
BTC: 1Bps3ZerDFDDnXJ9XdWtHhdhwsV4MVGLkw

Reply
Thanks given by:
#5
RE: [MODULE] Net2FTP-Filemanager
protip: don't use free webhosting or .tk domain like that for repos cause if someone tries to add the repo like 3 years later i'll be down. consider getting paid hosting and a domain name or upload the .zpp file to github for install via webapp
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
[MODULE] phpMyAdmin-AU (Auto-Update) TGates 14 40 ,420 06-15-2021, 06:54 AM
Last Post: TGates
[MODULE] SenBrand - Basic Branding module for Sentora TGates 20 43 ,099 06-04-2021, 11:47 AM
Last Post: ccr1969
[MODULE] CoinCorner BitCoin Module Xversion 4 12 ,982 06-03-2021, 05:02 AM
Last Post: zHostingSolutions

Forum Jump:


Users browsing this thread: 1 Guest(s)