148 {
149 if(!isset(
$_POST[
'filename']) || !is_array(
$_POST[
'filename']) || !
$_POST[
'filename'])
150 {
152 $this->showAttachments();
153 return true;
154 }
155
156 $files = array();
157 foreach(
$_POST[
'filename'] as $value)
158 {
159 $files[] = urldecode($value);
160 }
161
162 if(strlen(($error = $this->mfile->unlinkFiles($files))))
163 {
165 }
166 else
167 {
168 $mailData = $this->umail->getSavedData();
169 if(is_array($mailData['attachments']))
170 {
171 $tmp = array();
172 for($i = 0; $i < count($mailData['attachments']); $i++)
173 {
174 if(!in_array($mailData['attachments'][$i], $files))
175 {
176 $tmp[] = $mailData['attachments'][$i];
177 }
178 }
179 $this->umail->saveAttachments($tmp);
180 }
181
183 }
184
185 $this->showAttachments();
186 }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.