27include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
51 $this->family =
"interface";
53 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
57 $this->version =
'dolibarr_deprecated';
59 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
61 $this->picto =
'folder';
64 $this->dirs = array(
"/ftp/temp");
67 $this->langfiles = array(
"ftp");
70 $this->config_page_url = array(
'ftpclient.php@ftp');
73 $this->depends = array();
74 $this->requiredby = array();
78 1=>array(
'FTP_CONNECT_WITH_SSL',
'chaine',
'0',
'Use FTPS for FTP module', 1,
'current', 1),
79 2=>array(
'FTP_CONNECT_WITH_SFTP',
'chaine',
'0',
'Use SFTP for FTP module', 1,
'current', 1)
83 $this->boxes = array();
94 $this->rights_class =
'ftp';
95 $this->rights = array();
98 $this->rights[$r][0] = 2801;
99 $this->rights[$r][1] =
'Use FTP client in read mode (browse and download only)';
100 $this->rights[$r][2] =
'r';
101 $this->rights[$r][3] = 0;
102 $this->rights[$r][4] =
'read';
105 $this->rights[$r][0] = 2802;
106 $this->rights[$r][1] =
'Use FTP client in write mode (delete or upload files)';
107 $this->rights[$r][2] =
'w';
108 $this->rights[$r][3] = 0;
109 $this->rights[$r][4] =
'write';
114 $this->menu[$r] = array(
'fk_menu'=>0,
117 'prefix' =>
img_picto(
'', $this->picto,
'class="paddingright pictofixedwidth em092"'),
119 'url'=>
'/ftp/index.php',
122 'enabled'=>
'$conf->ftp->enabled',
123 '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.