Skip to content
Snippets Groups Projects
Commit 4fb66cf7 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Better explanation for ftp module setup to avoid error with FTPS/SFTP.

parent 24420edd
Branches main
No related tags found
No related merge requests found
...@@ -76,7 +76,10 @@ class modFTP extends DolibarrModules ...@@ -76,7 +76,10 @@ class modFTP extends DolibarrModules
$this->requiredby = array(); // List of modules id to disable if this one is disabled $this->requiredby = array(); // List of modules id to disable if this one is disabled
// Constants // Constants
$this->const = array(); // List of parameters $this->const = array(
1=>array('FTP_CONNECT_WITH_SSL','chaine','0','Use FTPS for FTP module', 1, 'current', 1),
2=>array('FTP_CONNECT_WITH_SFTP','chaine','0','Use SFTP for FTP module', 1, 'current', 1)
); // List of parameters
// Boxes // Boxes
$this->boxes = array(); // List of boxes $this->boxes = array(); // List of boxes
......
...@@ -173,7 +173,7 @@ else ...@@ -173,7 +173,7 @@ else
print '<tr class="pair">'; print '<tr class="pair">';
print '<td width="100">'.$langs->trans("Port").'</td>'; print '<td width="100">'.$langs->trans("Port").'</td>';
print '<td><input type="text" name="FTP_PORT_'.($lastftpentry+1).'" value="'.GETPOST("FTP_PORT_" . ($lastftpentry+1)).'" size="64"></td>'; print '<td><input type="text" name="FTP_PORT_'.($lastftpentry+1).'" value="'.GETPOST("FTP_PORT_" . ($lastftpentry+1)).'" size="64"></td>';
print '<td>21</td>'; print '<td>21 for pure non crypted FTP or if option FTP_CONNECT_WITH_SSL (See Home-Setup-Other) is on (FTPS)<br>22 if option FTP_CONNECT_WITH_SFTP (See Home-Setup-Other) is on (SFTP)</td>';
print '</tr>'; print '</tr>';
print '<tr class="impair">'; print '<tr class="impair">';
......
...@@ -458,7 +458,7 @@ else ...@@ -458,7 +458,7 @@ else
// Construit liste des repertoires // Construit liste des repertoires
print '<table width="100%" class="nobordernopadding">'."\n"; print '<table width="100%" class="noborder">'."\n";
print '<tr class="liste_titre">'."\n"; print '<tr class="liste_titre">'."\n";
print '<td class="liste_titre" align="left">'.$langs->trans("Content").'</td>'."\n"; print '<td class="liste_titre" align="left">'.$langs->trans("Content").'</td>'."\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment