Customize FTP Port & Customize Email Ports [SOLVED]
Customize FTP Port & Customize Email Ports
But in user's dashboard under FTP and EMAIL, the default ports are displayed under "Connection data -> Show". Is there anyway to edit / customize this? Much appreciated if this is kept as an option under configurations / under white label.
Screenshots attached for reference. Thank You.
Re: Customize FTP Port & Customize Email Ports
In an upcoming update, I could potentially also read them from the /etc/services file. In this case, if this file lists the correct ports, than they would be shown.
Beside of that, you can also use the white label settings and write some lines of Javascript to update the port numbers accordingly.
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Customize FTP Port & Customize Email Ports
Re: Customize FTP Port & Customize Email Ports [SOLVED]
Code: Select all
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
if (window.location.href.indexOf("page=user_ftp") > -1) {
$("td:contains('21')").html("2121");
$("td:contains('server.mywebserver.com')").html("ftp.mywebserver.com");
}
if (window.location.href.indexOf("page=user_email") > -1) {
$("tH:contains('Connection data')").html("");
$("td:contains('Show')").html("");
}
});
</script>
1. The FTP port is now displayed as 2121 instead of 21.
2. The email ports are completely hidden for users. Since I use amazon ses as smtp, I don't want my users to take control of smtp credentials and options to use external email clients.
Let me know whether the above code is correct and safe?
Re: Customize FTP Port & Customize Email Ports
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Customize FTP Port & Customize Email Ports
As suggested by u, I have removed them. Script is working fine as previous.