upgrade to new directory tree
some spelling changes
This commit is contained in:
parent
d7843e0e60
commit
5d38b90d04
@ -23,10 +23,11 @@
|
|||||||
* \version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../main.inc.php");
|
require("../../main.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||||
|
|
||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
|
$langs->load("@ftp");
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if (!$user->admin) accessforbidden();
|
if (!$user->admin) accessforbidden();
|
||||||
@ -31,7 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/files.lib.php");
|
|||||||
require_once(DOL_DOCUMENT_ROOT."/lib/treeview.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/treeview.lib.php");
|
||||||
|
|
||||||
// Load traductions files
|
// Load traductions files
|
||||||
$langs->load("ftp");
|
$langs->load("@ftp");
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
# Dolibarr language file - en_US - ftp
|
# Dolibarr language file - en_US - ftp
|
||||||
CHARSET=UTF-8
|
CHARSET=UTF-8
|
||||||
FTPClientSetup=FTP Client module setup
|
FTPClientSetup=FTP Client module setup
|
||||||
NewFTPClient=New FTP connection setup
|
NewFTPClient=New FTP connection setup
|
||||||
FTPArea=FTP Area
|
FTPArea=FTP Area
|
||||||
FTPAreaDesc=This screen show you content of a FTP server view
|
FTPAreaDesc=This screen show you content of a FTP server view
|
||||||
SetupOfFTPClientModuleNotComplete=Setup of FTP client module seems to be not complete
|
SetupOfFTPClientModuleNotComplete=Setup of FTP client module seems to be not complete
|
||||||
FTPFeatureNotSupportedByYourPHP=Your PHP does not support FTP functions
|
FTPFeatureNotSupportedByYourPHP=Your PHP does not support FTP functions
|
||||||
FailedToConnectToFTPServer=Failed to connect to FTP server (server %s, port %s)
|
FailedToConnectToFTPServer=Failed to connect to FTP server (server %s, port %s)
|
||||||
FailedToConnectToFTPServerWithCredentials=Failed to login to FTP server with defined login/password
|
FailedToConnectToFTPServerWithCredentials=Failed to login to FTP server with defined login/password
|
||||||
FTPFailedToRemoveFile=Failed to remove file <b>%s</b>.
|
FTPFailedToRemoveFile=Failed to remove file <b>%s</b>.
|
||||||
FTPFailedToRemoveDir=Failed to remove directory <b>%s</b> (Check permissions and that directory is empty).
|
FTPFailedToRemoveDir=Failed to remove directory <b>%s</b> (Check permissions and that directory is empty).
|
||||||
@ -1,12 +1,12 @@
|
|||||||
# Dolibarr language file - fr_FR - ftp
|
# Dolibarr language file - fr_FR - ftp
|
||||||
CHARSET=UTF-8
|
CHARSET=UTF-8
|
||||||
FTPClientSetup=Configuration du module FTP Client
|
FTPClientSetup=Configuration du module FTP Client
|
||||||
NewFTPClient=Nouvelle connexion FTP cliente
|
NewFTPClient=Nouvelle configuration de connexion FTP
|
||||||
FTPArea=Espace FTP
|
FTPArea=Espace FTP
|
||||||
FTPAreaDesc=Cet écran vous présente une vue de serveur FTP
|
FTPAreaDesc=Cet écran vous présente une vue de serveur FTP
|
||||||
SetupOfFTPClientModuleNotComplete=La configuration du module FTP Client semble incomplète
|
SetupOfFTPClientModuleNotComplete=La configuration du module FTP Client semble incomplète
|
||||||
FTPFeatureNotSupportedByYourPHP=Votre PHP ne supporte pas les fonctions FTP
|
FTPFeatureNotSupportedByYourPHP=Votre PHP ne supporte pas les fonctions FTP
|
||||||
FailedToConnectToFTPServer=Echec de connexion au serveur FTP (serveur: %s, port %s)
|
FailedToConnectToFTPServer=Echec de connexion au serveur FTP (serveur: %s, port %s)
|
||||||
FailedToConnectToFTPServerWithCredentials=Echec de login avec le login/mot de passe FTP configuré
|
FailedToConnectToFTPServerWithCredentials=Echec de login avec le login/mot de passe FTP configuré
|
||||||
FTPFailedToRemoveFile=Echec suppression fichier <b>%s</b>.
|
FTPFailedToRemoveFile=Echec suppression fichier <b>%s</b>.
|
||||||
FTPFailedToRemoveDir=Echec suppression répertoire <b>%s</b> (Vérifiez les permissions et que le répertoire est vide).
|
FTPFailedToRemoveDir=Echec suppression répertoire <b>%s</b> (Vérifiez les permissions et que le répertoire soit vide).
|
||||||
@ -30,7 +30,7 @@ $user->getrights('ecm');
|
|||||||
function llxHeader($head = '', $title='', $help_url='', $morehtml='')
|
function llxHeader($head = '', $title='', $help_url='', $morehtml='')
|
||||||
{
|
{
|
||||||
global $conf,$langs,$user;
|
global $conf,$langs,$user;
|
||||||
$langs->load("ftp");
|
$langs->load("@ftp");
|
||||||
|
|
||||||
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
|
top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
|
||||||
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
|
top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss); // Show html headers
|
||||||
|
|||||||
@ -67,9 +67,12 @@ class modFTP extends DolibarrModules
|
|||||||
|
|
||||||
// Data directories to create when module is enabled
|
// Data directories to create when module is enabled
|
||||||
$this->dirs = array("/ftp/temp");
|
$this->dirs = array("/ftp/temp");
|
||||||
|
|
||||||
|
// Langs file within the module
|
||||||
|
$this->langfiles = array("@ftp");
|
||||||
|
|
||||||
// Config pages. Put here list of php page names stored in admmin directory used to setup module
|
// Config pages. Put here list of php page names stored in admmin directory used to setup module
|
||||||
$this->config_page_url = array('ftpclient.php');
|
$this->config_page_url = array('ftpclient.php@ftp');
|
||||||
|
|
||||||
// Dependencies
|
// Dependencies
|
||||||
$this->depends = array(); // List of modules id that must be enabled if this module is enabled
|
$this->depends = array(); // List of modules id that must be enabled if this module is enabled
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user