Revision 4416,
679 bytes
checked in by airton, 13 years ago
(diff) |
Ticket #1887 - Redefinicao do parser de email - Todas as adequacoes feitas no parser.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2] | 1 | <?php |
---|
[4416] | 2 | /* |
---|
| 3 | * Requieres |
---|
| 4 | */ |
---|
| 5 | require_once '../../header.session.inc.php'; |
---|
| 6 | require_once $_SESSION['rootPath'].'/expressoMail1_2/inc/class.attachment.inc.php'; |
---|
| 7 | //------------------------// |
---|
[1040] | 8 | |
---|
[4416] | 9 | /* |
---|
| 10 | * Get variables |
---|
| 11 | */ |
---|
| 12 | $msgFolder = $_GET['msg_folder']; |
---|
| 13 | $msgNumber = $_GET['msg_num']; |
---|
| 14 | $embeddedPart = $_GET['msg_part']; |
---|
| 15 | //-------------------------------------// |
---|
[3018] | 16 | |
---|
[4416] | 17 | |
---|
| 18 | /* |
---|
| 19 | * Main |
---|
| 20 | */ |
---|
| 21 | $attachmentObj = new attachment(); |
---|
| 22 | $attachmentObj->setStructureFromMail($msgFolder, $msgNumber); |
---|
| 23 | $fileContent = $attachmentObj->getAttachment($embeddedPart); |
---|
| 24 | |
---|
| 25 | header("Content-Type: image/jpeg"); |
---|
| 26 | header("Content-Disposition: inline"); |
---|
| 27 | |
---|
| 28 | echo $fileContent; |
---|
| 29 | //------------------------------------------// |
---|
| 30 | |
---|
[1037] | 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.