���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/alphpwcp/public_html/us/alphachat/modules/lhmailconv/apimaildownload.php
���ѧ٧ѧ�
<?php $mail = erLhcoreClassModelMailconvMessage::fetch($Params['user_parameters']['id']); if (!($mail instanceof \erLhcoreClassModelMailconvMessage)) { $mailData = \LiveHelperChat\mailConv\Archive\Archive::fetchMailById($Params['user_parameters']['id_conv']); if (isset($mailData['mail'])) { $mail = \LiveHelperChat\Models\mailConv\Archive\Message::fetchAndLock($Params['user_parameters']['id']); } } try { header('Content-Disposition: attachment; filename="'.$mail->id.'.eml"'); header('Content-type: text/plain'); echo \LiveHelperChat\mailConv\helpers\DownloadHelper::download($mail); exit; } catch (Exception $e) { $tpl = erLhcoreClassTemplate::getInstance('lhkernel/validation_error.tpl.php'); $tpl->set('errors',[ erTranslationClassLhTranslation::getInstance()->getTranslation('module/mailconv','Message with specified ID could not be found anymore in provided IMAP folder'), htmlspecialchars($e->getMessage()), erTranslationClassLhTranslation::getInstance()->getTranslation('module/mailconv','Message ID').' - '.$mail->uid.' '.$mail->message_id, $mail->mb_folder ]); $Result['content'] = $tpl->fetch(); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.14 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�