| 1234567891011121314151617 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- namespace App;
- /**
- * @var string $type
- * @var string $id
- */
- switch($type) {
- case "ticket-comment-attachment":
- $attachment = TicketCommentAttachment::require($id);
- header("Content-Type: $attachment->mime_type");
- readfile($attachment->getPath());
- exit(0);
- }
|