mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
- LSformElement_maildir : Ajout de messages lors des réussites de
création/modification/suppression
This commit is contained in:
parent
c6cf4b46a1
commit
99a8de6715
1 changed files with 15 additions and 3 deletions
|
@ -139,17 +139,29 @@ class LSformElement_maildir extends LSformElement_text {
|
||||||
if ($this -> params['html_options']['archiveNameFormat']) {
|
if ($this -> params['html_options']['archiveNameFormat']) {
|
||||||
$newname=getFData($this -> params['html_options']['archiveNameFormat'],$this -> _toDo['old']);
|
$newname=getFData($this -> params['html_options']['archiveNameFormat'],$this -> _toDo['old']);
|
||||||
if ($newname) {
|
if ($newname) {
|
||||||
return renameMaildirByFTP($this -> _toDo['old'],$newname);
|
if (renameMaildirByFTP($this -> _toDo['old'],$newname)) {
|
||||||
|
$GLOBALS['LSsession'] -> addInfo("La boîte mail a été archivée.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
LSdebug($this -> name." - LSformElement_maildir->toDo() : Nom d'archivage incorrect.");
|
LSdebug($this -> name." - LSformElement_maildir->toDo() : Nom d'archivage incorrect.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'modify':
|
case 'modify':
|
||||||
return renameMaildirByFTP($this -> _toDo['old'],$this -> _toDo['new']);
|
if (renameMaildirByFTP($this -> _toDo['old'],$this -> _toDo['new'])) {
|
||||||
|
$GLOBALS['LSsession'] -> addInfo("La boîte mail a été déplacée.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return;
|
||||||
break;
|
break;
|
||||||
case 'create':
|
case 'create':
|
||||||
return createMaildirByFTP(null,$this -> _toDo['new']);
|
if (createMaildirByFTP(null,$this -> _toDo['new'])) {
|
||||||
|
$GLOBALS['LSsession'] -> addInfo("La boîte mail a été créée.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LSdebug($this -> name.' - LSformElement_maildir->toDo() : Action inconnu.');
|
LSdebug($this -> name.' - LSformElement_maildir->toDo() : Action inconnu.');
|
||||||
|
|
Loading…
Reference in a new issue