27include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
50 $this->family =
"interface";
52 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
56 $this->version =
'dolibarr_deprecated';
58 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
60 $this->picto =
'folder';
63 $this->dirs = array(
"/ftp/temp");
66 $this->langfiles = array(
"ftp");
69 $this->config_page_url = array(
'ftpclient.php@ftp');
72 $this->depends = array();
73 $this->requiredby = array();
77 1=>array(
'FTP_CONNECT_WITH_SSL',
'chaine',
'0',
'Use FTPS for FTP module', 1,
'current', 1),
78 2=>array(
'FTP_CONNECT_WITH_SFTP',
'chaine',
'0',
'Use SFTP for FTP module', 1,
'current', 1)
82 $this->boxes = array();
93 $this->rights_class =
'ftp';
94 $this->rights = array();
97 $this->rights[$r][0] = 2801;
98 $this->rights[$r][1] =
'Use FTP client in read mode (browse and download only)';
99 $this->rights[$r][2] =
'r';
100 $this->rights[$r][3] = 0;
101 $this->rights[$r][4] =
'read';
104 $this->rights[$r][0] = 2802;
105 $this->rights[$r][1] =
'Use FTP client in write mode (delete or upload files)';
106 $this->rights[$r][2] =
'w';
107 $this->rights[$r][3] = 0;
108 $this->rights[$r][4] =
'write';
113 $this->menu[$r] = array(
'fk_menu'=>0,
116 'prefix' =>
img_picto(
'', $this->picto,
'class="pictofixedwidth em092"'),
118 'url'=>
'/ftp/index.php',
121 'enabled'=>
'$conf->ftp->enabled',
122 'perms'=>
'$user->rights->ftp->read || $user->rights->ftp->write || $user->rights->ftp->setup',
Description and activation class for module FTP.
__construct($db)
Constructor.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.